Method | Description | |
---|---|---|
AuthorizeClient ( |
Performs SHOPIFY OAUTH 2.0 authorization process based on shop access permission accepted.
|
|
AuthorizeClient ( string shopName, string authorizationCode, string hmacHash, string timestamp ) : |
Performs SHOPIFY OAUTH 2.0 authorization process based on shop access permission accepted.
|
|
GetOAuthUrl ( string shopName, OAuthScope scope ) : string |
Get URL to use for redirection at SHOPIFY OAUTH 2.0 authorization server, asking for permission to access intended store.
|
|
ShopifyOAuth ( ) : System |
Initializes a new instance of the ShopifyOAuth class. If initializes with empty constructor, library expected two application setting to be found in 'web.config' / 'app.config'. 1. 'shopify-dotnet-api-key' - Shopify application API key. 2. 'shopify-dotnet-secret-key' - Shopify application shared secret key.
|
|
ShopifyOAuth ( |
Initializes a new instance of the ShopifyOAuth class. Use this constructor in case you do not wish this library to fetch API and Secret Key from configuration file.
|
Method | Description | |
---|---|---|
ByteArrayToHexString ( ICollection |
||
ValidateInstallResponse ( |
public AuthorizeClient ( |
||
queryStringCollection | Instance of name value collection of query string returned in request of the callback URL by SHOPIFY authorization server. | |
return |
public AuthorizeClient ( string shopName, string authorizationCode, string hmacHash, string timestamp ) : |
||
shopName | string | Authorization shop name. |
authorizationCode | string | Intermediate authorization code, required to complete SHOPIFY OAUTH 2.0 authorization. |
hmacHash | string | HMAC hash value. |
timestamp | string | Timestamp value returned in the callback query string. |
return |
public GetOAuthUrl ( string shopName, OAuthScope scope ) : string | ||
shopName | string | Authorization shop name (w/o '.myshopify.com', only shop name). In case it contains '.myshopify.com' then it would be trimmed out to continue |
scope | OAuthScope | SHOPIFY OAUTH 2.0 permission scope(s) for which store admin will be asked permission for. |
return | string |
public ShopifyOAuth ( |
||
configuration | Instance of OAUTH settings. | |
return | System |