コード例 #1
0
 /// <summary> 
 /// List API Method
 /// http://wiki.js-kit.com/API-Method-feeds-list
 /// </summary> 
 /// <returns>Returns the list of registered feeds for a specified API key in XML format.</returns> 
 public string method_list()
 {
     EchoOAuth eoa = new EchoOAuth(this.consumer_key, this.consumer_secret, null, null);
     List<OAuth.QueryParameter> qparms = new List<OAuth.QueryParameter>();
     string rsp = eoa.oAuthRequest(this.API_URL_LIST, qparms, "GET");
     return rsp;
 }
コード例 #2
0
 /// <summary> 
 /// User Update API Method for updating user information.
 /// http://wiki.aboutecho.com/w/page/35060726/API-method-users-update
 /// </summary> 
 /// <param name="identityURL">User identity URL (if subject=poco this parameter should be empty string).</param> 
 /// <param name="subject">Shows which user parameter should be updated.</param> 
 /// <param name="content">Contains data to be used for the user update.</param> 
 /// <returns>Returns a user object or a result status string in JSON format.</returns> 
 public string method_user_update(string identityURL, string subject, string content)
 {
     EchoOAuth eoa = new EchoOAuth(this.consumer_key, this.consumer_secret, null, null);
     List<OAuth.QueryParameter> qparms = new List<OAuth.QueryParameter>();
     qparms.Add(new OAuth.QueryParameter("identityURL", identityURL));
     qparms.Add(new OAuth.QueryParameter("subject", subject));
     qparms.Add(new OAuth.QueryParameter("content", content));
     string rsp = eoa.oAuthRequest(this.API_URL_USERUPDATE, qparms, "POST");
     return rsp;
 }
コード例 #3
0
 /// <summary> 
 /// Unregisters an Activity Stream feed by URL.
 /// http://wiki.js-kit.com/API-Method-feeds-unregister
 /// </summary> 
 /// <param name="url">URL of the page with feed in Activity Streams XML format.</param> 
 /// <returns>Returns a result status string in JSON format.</returns> 
 public string method_unregister(string url)
 {
     EchoOAuth eoa = new EchoOAuth(this.consumer_key, this.consumer_secret, null, null);
     List<OAuth.QueryParameter> qparms = new List<OAuth.QueryParameter>();
     qparms.Add(new OAuth.QueryParameter("url", url));
     string rsp = eoa.oAuthRequest(this.API_URL_UNREGISTER, qparms, "POST");
     return rsp;
 }
コード例 #4
0
 /// <summary> 
 /// User Get API Method for fetching user information.
 /// http://wiki.aboutecho.com/w/page/35104884/API-method-users-get
 /// </summary> 
 /// <param name="identityURL">User identity URL.</param> 
 /// <returns>Returns a user object or a result status string in JSON format.</returns> 
 public string method_user_get(string identityURL)
 {
     EchoOAuth eoa = new EchoOAuth(this.consumer_key, this.consumer_secret, null, null);
     List<OAuth.QueryParameter> qparms = new List<OAuth.QueryParameter>();
     qparms.Add(new OAuth.QueryParameter("identityURL", identityURL));
     string rsp = eoa.oAuthRequest(this.API_URL_USERGET, qparms, "GET");
     return rsp;
 }
コード例 #5
0
 /// <summary> 
 /// Submit API Method
 /// http://wiki.js-kit.com/API-Method-submit
 /// </summary> 
 /// <param name="content">URL-encoded Activity Streams XML with one or more activity entries.</param> 
 /// <returns>Returns a result status string in JSON format.</returns> 
 public string method_submit(string content)
 {
     EchoOAuth eoa = new EchoOAuth(this.consumer_key, this.consumer_secret, null, null);
     List<OAuth.QueryParameter> qparms = new List<OAuth.QueryParameter>();
     qparms.Add(new OAuth.QueryParameter("content", content));
     string rsp = eoa.oAuthRequest("http://api.js-kit.com/v1/submit", qparms, "POST");
     return rsp;
 }