# Request

Required Frends version: 5.5+

Required .NET version: 6.0

Compatible Agents: Crossplatform

Source code: <https://github.com/FrendsPlatform/Frends.Instagram/tree/main/Frends.Instagram.Request>

{% tabs %}
{% tab title="Parameter: Input" %}

| Name                       | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| -------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Method : `Methods`         | <p>Gets or sets the HTTP Method to be used with the request.</p><p>Possible values:</p><ul><li><code>GET</code>:</li></ul><p>Gets or sets the HTTP Method to be used with the request.</p><ul><li><code>POST</code>:</li></ul><p>Gets or sets the HTTP Method to be used with the request.</p><ul><li><code>PUT</code>:</li></ul><p>Gets or sets the HTTP Method to be used with the request.</p><ul><li><code>PATCH</code>:</li></ul><p>Gets or sets the HTTP Method to be used with the request.</p><ul><li><code>DELETE</code>:</li></ul><p>Gets or sets the HTTP Method to be used with the request.</p><ul><li><code>HEAD</code>:</li></ul><p>Gets or sets the HTTP Method to be used with the request.</p><ul><li><code>OPTIONS</code>:</li></ul><p>Gets or sets the HTTP Method to be used with the request.</p><ul><li><code>CONNECT</code>:</li></ul><p>Gets or sets the HTTP Method to be used with the request.</p><p><br>Default: <code>0</code><br>Example: <code>Methods.GET</code></p> |
| Message : `String`         | <p>Gets or sets the message text to be sent with the request.</p><p><br>Default: <code>-</code><br>Example: <code>{ "Body": "Message" }</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| Reference : `String`       | <p>Gets or sets object id or reference. All reference types can be found from: <https://developers.facebook.com/docs/instagram-api/reference>.</p><p><br>Default: <code>123456789</code><br>Example: <code>123456789, 123456789/insights</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| QueryParameters : `String` | <p>Gets or sets query parameters.</p><p><br>Default: <code>fields=name,id</code><br>Example: <code>metrics=id,name</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| ApiVersion : `String`      | <p>Gets or sets API version.</p><p><br>Default: <code>18.0</code><br>Example: <code>18.0</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| 🗝AccessToken : `String`   | <p>Gets or sets authentication bearer token.</p><p><br>Default: <code>BearerToken1234</code><br>Example: <code>BearerToken1234</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| {% endtab %}               |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |

{% tab title="Parameter: Options" %}

| Name                            | Description                                                                                                                                                                                                                                                                                 |
| ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ThrowErrorOnFailure : `Boolean` | <p>Gets or sets a value indicating whether error should throw an exception (true) or stop the Task and return result object containing Result.Success = false and Result.ErrorMessage = 'exception message' (false).</p><p><br>Default: <code>True</code><br>Example: <code>true</code></p> |
| {% endtab %}                    |                                                                                                                                                                                                                                                                                             |

{% tab title="Result: Result" %}

| Name                 | Description                                                                                               |
| -------------------- | --------------------------------------------------------------------------------------------------------- |
| Statuscode : `Int32` | <p>Gets a value indicating whether GET call was executed successfully.<br>Example: <code>True.</code></p> |
| Message : `Object`   | <p>Gets message from the interface.<br>Example: <code>{ "id": 123456789, "name": "UserName" }</code></p>  |
| {% endtab %}         |                                                                                                           |

{% tab title="Changelog" %}

## Changelog

### \[1.1.0] - 2025-02-17

#### Changed

* Update package System.ComponentModel.Annotations from 4.7.0 to 5.0.0
* Update package System.Runtime.Caching from 8.0.0 to 9.0.3

### \[1.0.0] - 2023-01-29

#### Changed

* Initial implementation
  {% endtab %}
  {% endtabs %}
