一部更新 エージェント

チャネルマネージャAPIを使用してエージェントを部分的に更新するには、このエンドポイントを使用します。これは、既存の RCS Agent を部分的に更新します。

各コード・スニペットで使用されているすべての変数の説明を以下に示します:

キー説明
CHANNEL_MANAGER_RCS_AGENT_ID

The ID of the RCS agent.

VONAGE_API_KEY

Your Vonage API key (see it on your dashboard).

VONAGE_API_SECRET

Your Vonage API secret (also available on your dashboard).

Prerequisites

If you do not have an application you can create one. Make sure you also configure your webhooks.

Write the code

Add the following to partially-update-agent.sh:

curl -X PATCH https://api.nexmo.com/v1/channel-manager/rcs/agents/${CHANNEL_MANAGER_RCS_AGENT_ID} \
  -u "${VONAGE_API_KEY}:${VONAGE_API_SECRET}" \

View full source

Run your code

Save this file to your machine and run it:

bash partially-update-agent.sh