/// <summary> /// Gets information about accounts associated with the current user by calling the <code>/me/accounts</code> /// method. This call requires a user access token as well as the <code>manage_scope</code>. /// </summary> /// <param name="options">The options for the call to the API.</param> /// <returns>An instance of <see cref="SocialHttpResponse"/> representing the raw response.</returns> public SocialHttpResponse GetAccounts(FacebookGetAccountsOptions options) { if (options == null) { throw new ArgumentNullException("options"); } return(Client.DoHttpGetRequest("/me/accounts", options)); }
/// <summary> /// Gets information about accounts associated with the current user by calling the <code>/me/accounts</code> /// method. This call requires a user access token. /// </summary> /// <param name="options">The options for the call to the API.</param> public FacebookAccountsResponse GetAccounts(FacebookGetAccountsOptions options) { if (options == null) throw new ArgumentNullException("options"); return FacebookAccountsResponse.ParseResponse(Raw.GetAccounts()); }
/// <summary> /// Gets information about accounts associated with the current user by calling the <code>/me/accounts</code> /// method. This call requires a user access token. /// </summary> /// <param name="options">The options for the call to the API.</param> /// <returns>The raw JSON response from the API.</returns> public SocialHttpResponse GetAccounts(FacebookGetAccountsOptions options) { if (options == null) throw new ArgumentNullException("options"); return Client.DoAuthenticatedGetRequest("/me/accounts", options); }
/// <summary> /// Gets information about accounts associated with the current user by calling the <c>/me/accounts</c> /// method. This call requires a user access token as well as the <c>manage_scope</c>. /// </summary> /// <param name="options">The options for the call to the API.</param> /// <returns>An instance of <see cref="FacebookGetAccountsResponse"/> representing the response.</returns> public FacebookGetAccountsResponse GetAccounts(FacebookGetAccountsOptions options) { return(FacebookGetAccountsResponse.ParseResponse(Raw.GetAccounts(options))); }