C# 클래스 Foretagsplatsen.Api2.OAuthService

Företagsplatsen OAuth service
파일 보기 프로젝트 열기: foretagsplatsen/Foretagsplatsen-DotNet-API

공개 메소드들

메소드 설명
Authorize ( string username, string password ) : string

Authorize using Foretagsplatsen xAuth inspired method intended for browser-less applications.

CreateSession ( OAuthCredentials credentials, string oAuthBaseUrl, string callbackUrl ) : IOAuthSession
GetAccessToken ( string username, string verifier ) : OAuthCredentials

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 ) : OAuthCredentials

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

메소드 상세

Authorize() 공개 메소드

Authorize using Foretagsplatsen xAuth inspired method intended for browser-less applications.
public Authorize ( string username, string password ) : string
username string Username for user
password string Password for user.
리턴 string

CreateSession() 공개 정적인 메소드

public static CreateSession ( OAuthCredentials credentials, string oAuthBaseUrl, string callbackUrl ) : IOAuthSession
credentials OAuthCredentials
oAuthBaseUrl string
callbackUrl string
리턴 IOAuthSession

GetAccessToken() 공개 메소드

Exchanges a request token for an access token.
public GetAccessToken ( string username, string verifier ) : OAuthCredentials
username string username for user.
verifier string OAuth verifier
리턴 OAuthCredentials

GetAccessTokenEndpointUrl() 공개 정적인 메소드

public static GetAccessTokenEndpointUrl ( string oAuthBaseUrl ) : string
oAuthBaseUrl string
리턴 string

GetAuthorizeEndpointUrl() 공개 정적인 메소드

public static GetAuthorizeEndpointUrl ( string oAuthBaseUrl ) : string
oAuthBaseUrl string
리턴 string

GetAuthorizeUrl() 공개 메소드

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.
public GetAuthorizeUrl ( ) : string
리턴 string

GetAuthorizeUrl() 공개 메소드

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.
public GetAuthorizeUrl ( string callback ) : string
callback string Callback Url. The authorization page will redirect the user to this page on sucessful authorization.
리턴 string

GetCredentials() 공개 메소드

Perform all necessary steps (RequestToken, Authorize, AccessToken) to get credentials.
public GetCredentials ( string username, string password ) : OAuthCredentials
username string Username for user
password string Password for user.
리턴 OAuthCredentials

GetRequestToken() 공개 메소드

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.
public GetRequestToken ( ) : void
리턴 void

GetRequestTokenEndpointUrl() 공개 정적인 메소드

public static GetRequestTokenEndpointUrl ( string oAuthBaseUrl ) : string
oAuthBaseUrl string
리턴 string

OAuthService() 공개 메소드

public OAuthService ( string consumerKey, string consumerSecret ) : System
consumerKey string
consumerSecret string
리턴 System

OAuthService() 공개 메소드

public OAuthService ( string consumerKey, string consumerSecret, string baseUrl, string callbackUrl ) : System
consumerKey string
consumerSecret string
baseUrl string
callbackUrl string
리턴 System