C# Class AppHarbor.Client.AppHarborClient

Inheritance: IAppHarborClient
Afficher le fichier Open project: sethwebster/TweetHarbor

Méthodes publiques

Méthode Description
AppHarborClient ( string clientId, string secret ) : System
GetAccessToken ( string Code ) : string
GetAuthenticatedWebRequest ( string token, string url ) : HttpWebRequest
GetAuthorizationUrl ( ) : Uri
GetAuthorizationUrl ( string RedirectUri ) : Uri
GetProject ( string token, string projectName ) : Project
GetUserInformation ( string token ) : User
GetUserProjects ( string token ) : IEnumerable
RedirectToAuthorizationResult ( ) : System.Web.Mvc.RedirectResult
RedirectToAuthorizationResult ( string redirectUri ) : System.Web.Mvc.RedirectResult
SetServiceHookUrl ( string token, string projectName, string projectId, string serviceHookUrl ) : void

Private Methods

Méthode Description
GetAuthenticatedWebClient ( string token ) : WebClient
ServiceHookExists ( string token, string projectName, string serviceHookUrl ) : bool
TransformToJSON ( string resp ) : string

This method should be removed once we have the real JSON api in place

Method Details

AppHarborClient() public méthode

public AppHarborClient ( string clientId, string secret ) : System
clientId string
secret string
Résultat System

GetAccessToken() public méthode

public GetAccessToken ( string Code ) : string
Code string
Résultat string

GetAuthenticatedWebRequest() public méthode

public GetAuthenticatedWebRequest ( string token, string url ) : HttpWebRequest
token string
url string
Résultat System.Net.HttpWebRequest

GetAuthorizationUrl() public méthode

public GetAuthorizationUrl ( ) : Uri
Résultat System.Uri

GetAuthorizationUrl() public méthode

public GetAuthorizationUrl ( string RedirectUri ) : Uri
RedirectUri string
Résultat System.Uri

GetProject() public méthode

public GetProject ( string token, string projectName ) : Project
token string
projectName string
Résultat Project

GetUserInformation() public méthode

public GetUserInformation ( string token ) : User
token string
Résultat User

GetUserProjects() public méthode

public GetUserProjects ( string token ) : IEnumerable
token string
Résultat IEnumerable

RedirectToAuthorizationResult() public méthode

public RedirectToAuthorizationResult ( ) : System.Web.Mvc.RedirectResult
Résultat System.Web.Mvc.RedirectResult

RedirectToAuthorizationResult() public méthode

public RedirectToAuthorizationResult ( string redirectUri ) : System.Web.Mvc.RedirectResult
redirectUri string
Résultat System.Web.Mvc.RedirectResult

SetServiceHookUrl() public méthode

public SetServiceHookUrl ( string token, string projectName, string projectId, string serviceHookUrl ) : void
token string
projectName string
projectId string
serviceHookUrl string
Résultat void