C# Class AppHarbor.Client.AppHarborClient

Inheritance: IAppHarborClient
Datei anzeigen Open project: sethwebster/TweetHarbor

Public Methods

Method 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

Method 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 method

public AppHarborClient ( string clientId, string secret ) : System
clientId string
secret string
return System

GetAccessToken() public method

public GetAccessToken ( string Code ) : string
Code string
return string

GetAuthenticatedWebRequest() public method

public GetAuthenticatedWebRequest ( string token, string url ) : HttpWebRequest
token string
url string
return System.Net.HttpWebRequest

GetAuthorizationUrl() public method

public GetAuthorizationUrl ( ) : Uri
return System.Uri

GetAuthorizationUrl() public method

public GetAuthorizationUrl ( string RedirectUri ) : Uri
RedirectUri string
return System.Uri

GetProject() public method

public GetProject ( string token, string projectName ) : Project
token string
projectName string
return Project

GetUserInformation() public method

public GetUserInformation ( string token ) : User
token string
return User

GetUserProjects() public method

public GetUserProjects ( string token ) : IEnumerable
token string
return IEnumerable

RedirectToAuthorizationResult() public method

public RedirectToAuthorizationResult ( ) : System.Web.Mvc.RedirectResult
return System.Web.Mvc.RedirectResult

RedirectToAuthorizationResult() public method

public RedirectToAuthorizationResult ( string redirectUri ) : System.Web.Mvc.RedirectResult
redirectUri string
return System.Web.Mvc.RedirectResult

SetServiceHookUrl() public method

public SetServiceHookUrl ( string token, string projectName, string projectId, string serviceHookUrl ) : void
token string
projectName string
projectId string
serviceHookUrl string
return void