コード例 #1
0
ファイル: WindowsLive.cs プロジェクト: waffle-iron/nequeo
 /// <summary>
 /// Get the response data from the resource.
 /// </summary>
 /// <param name="state">Provides access to a persistent object that tracks the state of an authorization.</param>
 /// <param name="resourceEndPointUrl">The resource endpoint url.</param>
 /// <returns>The response data.</returns>
 public string GetResource(OAuth2.Consumer.Session.IAuthorizationState state, string resourceEndPointUrl)
 {
     byte[] data = base.RequestResource(state, resourceEndPointUrl);
     return(System.Text.Encoding.Default.GetString(data));
 }
コード例 #2
0
ファイル: WindowsLive.cs プロジェクト: waffle-iron/nequeo
 /// <summary>
 /// Get the response data from the resource.
 /// </summary>
 /// <param name="state">Provides access to a persistent object that tracks the state of an authorization.</param>
 /// <returns>The response data.</returns>
 public string GetMeResource(OAuth2.Consumer.Session.IAuthorizationState state)
 {
     byte[] data = base.RequestResource(state, "https://apis.live.net/v5.0/me");
     return(System.Text.Encoding.Default.GetString(data));
 }
コード例 #3
0
ファイル: WindowsLive.cs プロジェクト: waffle-iron/nequeo
 /// <summary>
 /// Get the response data from the resource.
 /// </summary>
 /// <param name="state">Provides access to a persistent object that tracks the state of an authorization.</param>
 /// <param name="resourceEndPointUrl">The resource endpoint url.</param>
 /// <returns>The response windows live graph.</returns>
 public WindowsLiveGraph GetResourceGraph(OAuth2.Consumer.Session.IAuthorizationState state, string resourceEndPointUrl)
 {
     return(WindowsLiveGraph.Deserialize(GetResource(state, resourceEndPointUrl)));
 }
コード例 #4
0
ファイル: WindowsLive.cs プロジェクト: waffle-iron/nequeo
 /// <summary>
 /// Get the response data from the resource.
 /// </summary>
 /// <param name="state">Provides access to a persistent object that tracks the state of an authorization.</param>
 /// <returns>The response windows live graph.</returns>
 public WindowsLiveGraph GetMeResourceGraph(OAuth2.Consumer.Session.IAuthorizationState state)
 {
     return(WindowsLiveGraph.Deserialize(GetMeResource(state)));
 }
コード例 #5
0
ファイル: Facebook.cs プロジェクト: waffle-iron/nequeo
 /// <summary>
 /// Get the response data from the resource.
 /// </summary>
 /// <param name="state">Provides access to a persistent object that tracks the state of an authorization.</param>
 /// <returns>The response data.</returns>
 public string GetMeResource(OAuth2.Consumer.Session.IAuthorizationState state)
 {
     byte[] data = base.RequestResource(state, "https://graph.facebook.com/me");
     return(System.Text.Encoding.Default.GetString(data));
 }
コード例 #6
0
ファイル: Facebook.cs プロジェクト: waffle-iron/nequeo
 /// <summary>
 /// Get the response data from the resource.
 /// </summary>
 /// <param name="state">Provides access to a persistent object that tracks the state of an authorization.</param>
 /// <returns>The response facebook graph.</returns>
 public FacebookGraph GetMeResourceGraph(OAuth2.Consumer.Session.IAuthorizationState state)
 {
     return(FacebookGraph.Deserialize(GetMeResource(state)));
 }