Skip to content

Commit

Permalink
updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
shrutisuryawanshigenesys committed Jul 8, 2024
1 parent 244aa77 commit e1d618b
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
66 changes: 66 additions & 0 deletions docs/resources/integration_facebook.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
---
page_title: "genesyscloud_integration_facebook Resource - terraform-provider-genesyscloud"
subcategory: ""
description: |-
Genesys Cloud integration facebook
---
# genesyscloud_integration_facebook (Resource)

Genesys Cloud integration facebook

## API Usage
The following Genesys Cloud APIs are used by this resource. Ensure your OAuth Client has been granted the necessary scopes and permissions to perform these operations:

* [POST /api/v2/conversations/messaging/integrations/facebook](https://developer.genesys.cloud/devapps/api-explorer#post-api-v2-conversations-messaging-integrations-facebook)
* [GET /api/v2/conversations/messaging/integrations/facebook/{integrationId}](https://developer.genesys.cloud/devapps/api-explorer#get-api-v2-conversations-messaging-integrations-facebook--integrationId-)
* [PATCH /api/v2/conversations/messaging/integrations/facebook/{integrationId}](https://developer.genesys.cloud/devapps/api-explorer#patch-api-v2-conversations-messaging-integrations-facebook--integrationId-)
* [DELETE /api/v2/conversations/messaging/integrations/facebook/{integrationId}](https://developer.genesys.cloud/devapps/api-explorer#delete-api-v2-conversations-messaging-integrations-facebook--integrationId-)
* [GET /api/v2/conversations/messaging/integrations/facebook](https://developer.genesys.cloud/devapps/api-explorer#get-api-v2-conversations-messaging-integrations-facebook)



## Example Usage

```terraform
resource "genesyscloud_integration_facebook" "test_sample" {
name = "ARBI Org Facebook Integration1"
page_access_token = "1234567890"
messaging_setting_id = "2c4e3b8e-3c9f-45c9-82cd-4bb54c8f18f0"
supported_content_id = "019c37a7-ccb4-4966-b1d7-ddb20399f7ab"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `name` (String) The name of the Facebook Integration

### Optional

- `app_id` (String) The app Id of Facebook app. The appId is required when a customer wants to use their own approved Facebook app.
- `app_secret` (String) The app Secret of Facebook app. The appSecret is required when appId is provided.
- `messaging_setting_id` (String) The messaging Setting unique identifier associated with this integration.
- `page_access_token` (String) The long-lived Page Access Token of Facebook page.
See https://developers.facebook.com/docs/facebook-login/access-tokens.
Either pageAccessToken or userAccessToken should be provided.
- `page_id` (String) The page Id of Facebook page. The pageId is required when userAccessToken is provided.
- `supported_content_id` (String) The SupportedContent unique identifier associated with this integration.
- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))
- `user_access_token` (String) The short-lived User Access Token of the Facebook user logged into the Facebook app.
See https://developers.facebook.com/docs/facebook-login/access-tokens.
Either pageAccessToken or userAccessToken should be provided.

### Read-Only

- `id` (String) The ID of this resource.

<a id="nestedblock--timeouts"></a>
### Nested Schema for `timeouts`

Optional:

- `read` (String)
- `update` (String)

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
resource "genesyscloud_integration_facebook" "test_sample" {
name = "ARBI Org Facebook Integration1"
page_access_token = "1234567890"
messaging_setting_id = "2c4e3b8e-3c9f-45c9-82cd-4bb54c8f18f0"
supported_content_id = "019c37a7-ccb4-4966-b1d7-ddb20399f7ab"
}

0 comments on commit e1d618b

Please sign in to comment.