Exemple #1
0
 /// <summary>
 /// Gets information about the user matching the specified <paramref name="options"/>.
 /// </summary>
 /// <param name="options">The options for the request to the API.</param>
 /// <returns>An instance of <see cref="IHttpResponse"/> representing the raw response.</returns>
 /// <see>
 ///     <cref>https://developers.facebook.com/docs/instagram-basic-display-api/reference/user</cref>
 /// </see>
 public IHttpResponse GetUser(InstagramGetUserOptions options)
 {
     if (options == null)
     {
         throw new ArgumentNullException(nameof(options));
     }
     return(Client.GetResponse(options));
 }
Exemple #2
0
 /// <summary>
 /// Gets metadata about the Instagram user matching the specified <paramref name="options"/>.
 /// </summary>
 /// <param name="options">THe options for the request to the API.</param>
 /// <returns>An instance of <see cref="InstagramUserResponse"/> representing the response.</returns>
 /// <see>
 ///     <cref>https://developers.facebook.com/docs/instagram-api/reference/user/#metadata</cref>
 /// </see>
 public InstagramUserResponse GetUser(InstagramGetUserOptions options)
 {
     return(new InstagramUserResponse(Raw.GetUser(options)));
 }