C# Class UserVoice.Client

ファイルを表示 Open project: uservoice/uservoice-csharp Class Usage Examples

Public Properties

Property Type Description
Secret string
Token string

Public Methods

Method Description
AuthorizeURL ( ) : string
Client ( string subdomainName, string apiKey, string apiSecret = null, string callback = null, string token = null, string secret = null, string uservoiceDomain = null, string protocol = null ) : System
Delete ( string path ) : JToken
Get ( string path ) : JToken
GetCollection ( string path, int limit = null ) : UserVoice.Collection
LoginAs ( string email ) : Client
LoginAsOwner ( ) : Client
LoginWithAccessToken ( string token, string secret ) : Client
LoginWithVerifier ( string verifier ) : Client
Post ( string path, Object parameters ) : JToken
Put ( string path, Object parameters ) : JToken
Request ( Method method, string path, Object body = null ) : JToken
RequestToken ( string callback = null ) : Client

Private Methods

Method Description
getToken ( ) : RestSharp.RestClient

Method Details

AuthorizeURL() public method

public AuthorizeURL ( ) : string
return string

Client() public method

public Client ( string subdomainName, string apiKey, string apiSecret = null, string callback = null, string token = null, string secret = null, string uservoiceDomain = null, string protocol = null ) : System
subdomainName string
apiKey string
apiSecret string
callback string
token string
secret string
uservoiceDomain string
protocol string
return System

Delete() public method

public Delete ( string path ) : JToken
path string
return JToken

Get() public method

public Get ( string path ) : JToken
path string
return JToken

GetCollection() public method

public GetCollection ( string path, int limit = null ) : UserVoice.Collection
path string
limit int
return UserVoice.Collection

LoginAs() public method

public LoginAs ( string email ) : Client
email string
return Client

LoginAsOwner() public method

public LoginAsOwner ( ) : Client
return Client

LoginWithAccessToken() public method

public LoginWithAccessToken ( string token, string secret ) : Client
token string
secret string
return Client

LoginWithVerifier() public method

public LoginWithVerifier ( string verifier ) : Client
verifier string
return Client

Post() public method

public Post ( string path, Object parameters ) : JToken
path string
parameters Object
return JToken

Put() public method

public Put ( string path, Object parameters ) : JToken
path string
parameters Object
return JToken

Request() public method

public Request ( Method method, string path, Object body = null ) : JToken
method Method
path string
body Object
return JToken

RequestToken() public method

public RequestToken ( string callback = null ) : Client
callback string
return Client

Property Details

Secret public_oe property

public string Secret
return string

Token public_oe property

public string Token
return string