ユーザー一覧

このコードスニペットでは、Applications に関連する Users のリストを取得する方法を説明します。

前提条件

You will need to use an existing Application containing at least one User in order to see a list of a Users. See the Create Conversation code snippet for information on how to create an Application. See also the Create User code snippet on how to create a User.

コードを書く

list-users.sh に以下を追加する:

curl "https://api.nexmo.com/v1/users" \
     -H 'Authorization: Bearer '$JWT\
     -H 'Content-Type: application/json'

全文を見る

コードを実行する

このファイルをあなたのマシンに保存し、実行する:

bash list-users.sh

試してみる

コードを実行すると、アプリケーションに関連付けられたユーザのリストが表示されます。