Метод | Описание | |
---|---|---|
Authorize ( string username, string password ) : string |
Authorize using Foretagsplatsen xAuth inspired method intended for browser-less applications.
|
|
CreateSession ( |
||
GetAccessToken ( string username, string verifier ) : |
Exchanges a request token for an access token.
|
|
GetAccessTokenEndpointUrl ( string oAuthBaseUrl ) : string | ||
GetAuthorizeEndpointUrl ( string oAuthBaseUrl ) : string | ||
GetAuthorizeUrl ( ) : string |
The authorize step is where you send the user to a page on Företagsplatsen.se that will allow them to grant your application privileges to use their account with the API.
|
|
GetAuthorizeUrl ( string callback ) : string |
The authorize step is where you send the user to a page on Företagsplatsen.se that will allow them to grant your application privileges to use their account with the API.
|
|
GetCredentials ( string username, string password ) : |
Perform all necessary steps (RequestToken, Authorize, AccessToken) to get credentials.
|
|
GetRequestToken ( ) : void |
The first step to authenticating a user is to obtain a request token from Företagsplatsen. This step serves two purposes: First, to tell Företagsplatsen what you're about to do. Second, to tell Företagsplatsen what you want to do for the OAuth callback.
|
|
GetRequestTokenEndpointUrl ( string oAuthBaseUrl ) : string | ||
OAuthService ( string consumerKey, string consumerSecret ) : System | ||
OAuthService ( string consumerKey, string consumerSecret, string baseUrl, string callbackUrl ) : System |
public Authorize ( string username, string password ) : string | ||
username | string | Username for user |
password | string | Password for user. |
Результат | string |
public static CreateSession ( |
||
credentials | ||
oAuthBaseUrl | string | |
callbackUrl | string | |
Результат | IOAuthSession |
public GetAccessToken ( string username, string verifier ) : |
||
username | string | username for user. |
verifier | string | OAuth verifier |
Результат |
public static GetAccessTokenEndpointUrl ( string oAuthBaseUrl ) : string | ||
oAuthBaseUrl | string | |
Результат | string |
public static GetAuthorizeEndpointUrl ( string oAuthBaseUrl ) : string | ||
oAuthBaseUrl | string | |
Результат | string |
public GetAuthorizeUrl ( string callback ) : string | ||
callback | string | Callback Url. The authorization page will redirect the user to this page on sucessful authorization. |
Результат | string |
public GetCredentials ( string username, string password ) : |
||
username | string | Username for user |
password | string | Password for user. |
Результат |
public static GetRequestTokenEndpointUrl ( string oAuthBaseUrl ) : string | ||
oAuthBaseUrl | string | |
Результат | string |
public OAuthService ( string consumerKey, string consumerSecret ) : System | ||
consumerKey | string | |
consumerSecret | string | |
Результат | System |
public OAuthService ( string consumerKey, string consumerSecret, string baseUrl, string callbackUrl ) : System | ||
consumerKey | string | |
consumerSecret | string | |
baseUrl | string | |
callbackUrl | string | |
Результат | System |