C# Class ApexLumia.Twitter

Datei anzeigen Open project: ApexHAB/apex-lumia Class Usage Examples

Public Methods

Method Description
Twitter ( string user, string consumerkey, string consumersecret, string accesstoken, string accesssecret ) : System

Constructor: Set important info.

newStatusAsync ( string tweet, string latitude = "", string longitude = "" ) : void

Async: Post a new tweet to the previously defined twitter account.

Private Methods

Method Description
generateAuthorizationHeader ( string url, string method, string>.Dictionary otherparams ) : string

Generate the OAuth HTTP Authorization header for twitter requests

Method Details

Twitter() public method

Constructor: Set important info.
public Twitter ( string user, string consumerkey, string consumersecret, string accesstoken, string accesssecret ) : System
user string Twitter Username
consumerkey string Twitter App Consumer Key
consumersecret string Twitter App Consumer Secret
accesstoken string Twitter User Access Token
accesssecret string Twitter User Access Token Secret
return System

newStatusAsync() public method

Async: Post a new tweet to the previously defined twitter account.
public newStatusAsync ( string tweet, string latitude = "", string longitude = "" ) : void
tweet string The tweet to post. Max. 140 chars
latitude string Optional: latitude for geotagging
longitude string Optional: longitude for geotagging
return void