REST API: Authorized Connect App

AuthorizedConnectApp リスト リソースは、ユーザーが自分の Twilio アカウント内で許可したすべての ConnectApp を表示します。 それぞれの ConnectApp は、Twilio アカウント内では サブアカウント に対応します。サブアカウントはこの ConnectApp のサンドボックスとして機能します。このインスタンス リソースは、ユーザーが ConnectApp に与えたパーミッションと、ConnectApp の情報を表示します。

AuthorizedConnectApp インスタンス リソース

リソースURI

/2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps/{ConnectAppSid}

リソースのプロパティ

名前 概要
account_sid

The unique id of the SubAccount this Connect App has access to. (🏢 not PII)

connect_app_company_name

The company name set for this Connect App. (🏢 not PII)

connect_app_description

A more detailed human readable description of the Connect App. (🏢 not PII)

connect_app_friendly_name

A human readable name for the Connect App. (🏢 not PII)

connect_app_homepage_url

The public URL for this Connect App. (🏢 not PII)

connect_app_sid

The unique id of the Connect App that was authorized. (🏢 not PII)

date_created

The date that this resource was created, given as GMT RFC 2822 format. (🏢 not PII)

date_updated

The date that this resource was last updated, given as GMT RFC 2822 format. (🏢 not PII)

permissions

The set of permissions that you have authorized for this Connect App. Valid permisisons are get-all or post-all. (🏢 not PII)

uri

The URI for this resource, relative to https://api.twilio.com. (🏢 not PII)

コードサンプルを読み込んでいます...
Language
SDKバージョン:
  • 4.x
  • 5.x
レスポンス形式:
  • JSON
  • xml
SDKバージョン:
  • 6.x
  • 7.x
SDKバージョン:
  • 2.x
  • 3.x
SDKバージョン:
  • 4.x
  • 5.x
SDKバージョン:
  • 5.x
  • 6.x
SDKバージョン:
  • 4.x
  • 5.x
形式:
  • JSON
  • XML
// Download the Node helper library from twilio.com/docs/node/install
// These vars are your accountSid and authToken from twilio.com/user/account
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client
  .authorizedConnectApps('CN47260e643654388faabe8aaa18ea6756')
  .get((err, authorizedApp) => {
    console.log(authorizedApp.connectAppHomepageUrl);
  });
// Download the helper library from https://www.twilio.com/docs/node/install
// Your Account Sid and Auth Token from twilio.com/console
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client.authorizedConnectApps('CN47260e643654388faabe8aaa18ea6756')
  .fetch()
  .then(authorized_connect_app => console.log(authorized_connect_app.connectAppCompanyName))
  .done();
// Download the twilio-csharp library from twilio.com/docs/csharp/install
using System;
using Twilio;
class Example
{
  static void Main(string[] args)
  {
    // Find your Account Sid and Auth Token at twilio.com/user/account
    string AccountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
    string AuthToken = "your_auth_token";
    var twilio = new TwilioRestClient(AccountSid, AuthToken);

    var authorizedApp = twilio.GetAuthorizedConnectApp("CN47260e643654388faabe8aaa18ea6756");

    Console.WriteLine(authorizedApp.HomepageUrl);
  }
}
<?php
// Get the PHP helper library from https://twilio.com/docs/libraries/php
require_once('/path/to/twilio-php/Services/Twilio.php'); // Loads the library

// Your Account Sid and Auth Token from twilio.com/user/account
$sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; 
$token = "your_auth_token"; 
$client = new Services_Twilio($sid, $token);

// Get an object from its sid. If you do not have a sid,
// check out the list resource examples on this page
$authorized_app = $client->account->authorized_connect_apps->get("CN47260e643654388faabe8aaa18ea6756");
echo $authorized_app->connect_app_homepage_url;
# Get twilio-ruby from twilio.com/docs/ruby/install
require 'rubygems' # This line not needed for ruby > 1.8
require 'twilio-ruby'

# Get your Account Sid and Auth Token from twilio.com/user/account
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
client = Twilio::REST::Client.new account_sid, auth_token

# Get an object from its sid. If you do not have a sid,
# check out the list resource examples on this page
authorized_app = client.account
                       .authorized_connect_apps
                       .get('CN47260e643654388faabe8aaa18ea6756')
puts authorized_app.connect_app_homepage_url
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Api.V2010.Account;


class Program 
{
    static void Main(string[] args)
    {
        // Find your Account Sid and Token at twilio.com/console
        const string accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
        const string authToken = "your_auth_token";

        TwilioClient.Init(accountSid, authToken);

        var authorizedConnectApp = AuthorizedConnectAppResource.Fetch(
            pathAccountSid: "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
            pathConnectAppSid: "CN47260e643654388faabe8aaa18ea6756"
        );

        Console.WriteLine(authorizedConnectApp.ConnectAppCompanyName);
    }
}
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once '/path/to/vendor/autoload.php';

use Twilio\Rest\Client;

// Your Account Sid and Auth Token from twilio.com/console
$sid    = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$token  = "your_auth_token";
$twilio = new Client($sid, $token);

$authorized_connect_app = $twilio->authorizedConnectApps("CN47260e643654388faabe8aaa18ea6756")
                                 ->fetch();

print($authorized_connect_app->connectAppCompanyName);
# Download the Python helper library from twilio.com/docs/python/install
from twilio.rest import TwilioRestClient

# Your Account Sid and Auth Token from twilio.com/user/account
account_sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
auth_token = "your_auth_token"
client = TwilioRestClient(account_sid, auth_token)

authorized_app = client.authorized_connect_apps.get(
    "CN47260e643654388faabe8aaa18ea6756"
)
print(authorized_app.homepage_url)
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'rubygems'
require 'twilio-ruby'

# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
@client = Twilio::REST::Client.new(account_sid, auth_token)

authorized_connect_app = @client
  .authorized_connect_apps('CN47260e643654388faabe8aaa18ea6756')
  .fetch

puts authorized_connect_app.connect_app_company_name
// Install the Java helper library from twilio.com/docs/java/install
import com.twilio.sdk.TwilioRestClient;
import com.twilio.sdk.TwilioRestException;
import com.twilio.sdk.resource.instance.AuthorizedConnectApp;

public class Example { 

  // Find your Account Sid and Token at twilio.com/user/account
  public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
  public static final String AUTH_TOKEN = "your_auth_token";

  public static void main(String[] args) throws TwilioRestException {
    TwilioRestClient client = new TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN);

    // Get an object from its sid. If you do not have a sid,
    // check out the list resource examples on this page
    AuthorizedConnectApp authorizedApp = client.getAccount().getAuthorizedConnectApp("CN47260e643654388faabe8aaa18ea6756");
    System.out.println(authorizedApp.getConnectAppHomepageUrl());
    
  }
}
# Download the helper library from https://www.twilio.com/docs/python/install
from twilio.rest import Client


# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
client = Client(account_sid, auth_token)

authorized_connect_app = client \
    .authorized_connect_apps('CN47260e643654388faabe8aaa18ea6756') \
    .fetch()

print(authorized_connect_app.connect_app_company_name)
// Install the Java helper library from twilio.com/docs/java/install

import com.twilio.Twilio;
import com.twilio.rest.api.v2010.account.AuthorizedConnectApp;

public class Example {
    // Find your Account Sid and Token at twilio.com/console
    public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
    public static final String AUTH_TOKEN = "your_auth_token";

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        AuthorizedConnectApp authorizedConnectApp = 
            AuthorizedConnectApp.fetcher(
                "CN47260e643654388faabe8aaa18ea6756")
            .fetch();

        System.out.println(authorizedConnectApp.getConnectAppCompanyName());
    }
}
curl -G https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AuthorizedConnectApps/CN47260e643654388faabe8aaa18ea6756 \
    -u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'
curl -X GET 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AuthorizedConnectApps/CN47260e643654388faabe8aaa18ea6756.json' \
-u ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token
{
  "account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "connect_app_company_name": "aaa",
  "connect_app_description": "alksjdfl;ajseifj;alsijfl;ajself;jasjfjas;lejflj",
  "connect_app_friendly_name": "aaa",
  "connect_app_homepage_url": "http://www.google.com",
  "connect_app_sid": "CN47260e643654388faabe8aaa18ea6756",
  "date_created": "Tue, 31 Aug 2010 20:36:28 +0000",
  "date_updated": "Tue, 31 Aug 2010 20:36:44 +0000",
  "permissions": [
    "get-all"
  ],
  "uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AuthorizedConnectApps/CN47260e643654388faabe8aaa18ea6756.json"
}
<TwilioResponse>
	<AuthorizedConnectApp>
		<AccountSid>ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</AccountSid>
		<Permissions>
			<Permission>get-all</Permission>
			<Permission>post-all</Permission>
		</Permissions>
		<ConnectAppSid>CN47260e643654388faabe8aaa18ea6756</Sid>
		<ConnectAppFriendlyName>My Connect App</FriendlyName>
		<ConnectAppDescription>
			An amazing TwilioConnect application that does amazing things!
		</ConnectAppDescription>
		<ConnectAppCompanyName>My Company</CompanyName>
		<ConnectAppHomepageUrl>http://www.mycompany.com</HomepageUrl>
	</AuthorizedConnectApp>
</TwilioResponse>
認証済みのConnectアプリケーションを取得する

HTTP POST

サポートされていません。

HTTP PUT

サポートされていません。

HTTP DELETE

サポートされていません。

AuthorizedConnectApps リスト リソース

リソースURI

/2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps

HTTP GET

ConnectApp リソース表現のリストを返します。各項目は、ユーザーがアカウントへのアクセスを許可した ConnectApp を表現します。 このリストは ページ情報を含みます。

例 1
コードサンプルを読み込んでいます...
Language
SDKバージョン:
  • 4.x
  • 5.x
レスポンス形式:
  • JSON
  • xml
SDKバージョン:
  • 6.x
  • 7.x
SDKバージョン:
  • 2.x
  • 3.x
SDKバージョン:
  • 4.x
  • 5.x
SDKバージョン:
  • 5.x
  • 6.x
SDKバージョン:
  • 4.x
  • 5.x
形式:
  • JSON
  • XML
// Download the Node helper library from twilio.com/docs/node/install
// These vars are your accountSid and authToken from twilio.com/user/account
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client.authorizedConnectApps.list((err, data) => {
  data.authorizedConnectApps.forEach(authorizedApp => {
    console.log(authorizedApp.connectAppHomepageUrl);
  });
});
// Download the helper library from https://www.twilio.com/docs/node/install
// Your Account Sid and Auth Token from twilio.com/console
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client.authorizedConnectApps
  .each(authorizedConnectApps => console.log(authorizedConnectApps.connectAppCompanyName));
// Download the twilio-csharp library from twilio.com/docs/csharp/install
using System;
using Twilio;
class Example
{
  static void Main(string[] args)
  {
    // Find your Account Sid and Auth Token at twilio.com/user/account
    string AccountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
    string AuthToken = "your_auth_token";
    var twilio = new TwilioRestClient(AccountSid, AuthToken);

    var authorizedApps = twilio.ListAuthorizedConnectApps(null, null);

    foreach (var authorizedApp in authorizedApps.AuthorizedConnectApps)
    {
      Console.WriteLine(authorizedApp.HomepageUrl);
    }
  }
}
<?php
// Get the PHP helper library from https://twilio.com/docs/libraries/php
require_once('/path/to/twilio-php/Services/Twilio.php'); // Loads the library

// Your Account Sid and Auth Token from twilio.com/user/account
$sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; 
$token = "your_auth_token"; 
$client = new Services_Twilio($sid, $token);

// Loop over the list of authorized_apps and echo a property for each one
foreach ($client->account->authorized_connect_apps as $authorized_app) {
    echo $authorized_app->connect_app_homepage_url;
}
# Get twilio-ruby from twilio.com/docs/ruby/install
require 'rubygems' # This line not needed for ruby > 1.8
require 'twilio-ruby'

# Get your Account Sid and Auth Token from twilio.com/user/account
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
@client = Twilio::REST::Client.new account_sid, auth_token

# Loop over authorized_apps and print out a property for each one
@client.account.authorized_connect_apps.list.each do |authorized_app|
  puts authorized_app.connect_app_homepage_url
end
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Api.V2010.Account;


class Program 
{
    static void Main(string[] args)
    {
        // Find your Account Sid and Token at twilio.com/console
        const string accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
        const string authToken = "your_auth_token";

        TwilioClient.Init(accountSid, authToken);

        var authorizedConnectApps = AuthorizedConnectAppResource.Read(
            pathAccountSid: "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
        );

        foreach(var record in authorizedConnectApps)
        {
           Console.WriteLine(record.ConnectAppCompanyName);
        }
    }
}
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once '/path/to/vendor/autoload.php';

use Twilio\Rest\Client;

// Your Account Sid and Auth Token from twilio.com/console
$sid    = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$token  = "your_auth_token";
$twilio = new Client($sid, $token);

$authorizedConnectApps = $twilio->authorizedConnectApps
                                ->read();

foreach ($authorizedConnectApps as $record) {
    print($record->connectAppCompanyName);
}
# Download the Python helper library from twilio.com/docs/python/install
from twilio.rest import TwilioRestClient

# Your Account Sid and Auth Token from twilio.com/user/account
account_sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
auth_token = "your_auth_token"
client = TwilioRestClient(account_sid, auth_token)

# A list of authorized_app objects with the properties described above
authorized_apps = client.authorized_connect_apps.list()
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'rubygems'
require 'twilio-ruby'

# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
@client = Twilio::REST::Client.new(account_sid, auth_token)

authorized_connect_apps = @client.authorized_connect_apps.list

authorized_connect_apps.each do |record|
  puts record.connect_app_company_name
end
// Install the Java helper library from twilio.com/docs/java/install
import com.twilio.sdk.TwilioRestClient;
import com.twilio.sdk.TwilioRestException;
import com.twilio.sdk.resource.instance.AuthorizedConnectApp;
import com.twilio.sdk.resource.list.AuthorizedConnectAppList;

public class Example { 

  // Find your Account Sid and Token at twilio.com/user/account
  public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
  public static final String AUTH_TOKEN = "your_auth_token";

  public static void main(String[] args) throws TwilioRestException {
    TwilioRestClient client = new TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN);

    
    
    AuthorizedConnectAppList authorizedApps = client.getAccount().getAuthorizedConnectApps();
    
    // Loop over authorizedApps and print out a property for each one.
    for (AuthorizedConnectApp authorizedApp : authorizedApps) {
      System.out.println(authorizedApp.getConnectAppHomepageUrl());
    }
    
  }
}
# Download the helper library from https://www.twilio.com/docs/python/install
from twilio.rest import Client


# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
client = Client(account_sid, auth_token)

authorized_connect_apps = client.authorized_connect_apps.list()

for record in authorized_connect_apps:
    print(record.connect_app_company_name)
// Install the Java helper library from twilio.com/docs/java/install

import com.twilio.Twilio;
import com.twilio.base.ResourceSet;
import com.twilio.rest.api.v2010.account.AuthorizedConnectApp;

public class Example {
    // Find your Account Sid and Token at twilio.com/console
    public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
    public static final String AUTH_TOKEN = "your_auth_token";

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        ResourceSet<AuthorizedConnectApp> authorizedConnectApps = 
            AuthorizedConnectApp.reader()
            .read();

        for(AuthorizedConnectApp record : authorizedConnectApps) {
            System.out.println(record.getConnectAppCompanyName());
        }
    }
}
curl -G https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AuthorizedConnectApps \
    -u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'
curl -X GET 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AuthorizedConnectApps.json' \
-u ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token
{
  "authorized_connect_apps": [
    {
      "account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
      "connect_app_company_name": "YOUR OTHER MOM",
      "connect_app_description": "alksjdfl;ajseifj;alsijfl;ajself;jasjfjas;lejflj",
      "connect_app_friendly_name": "YOUR MOM",
      "connect_app_homepage_url": "http://www.google.com",
      "connect_app_sid": "CNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
      "date_created": "Tue, 31 Aug 2010 20:36:28 +0000",
      "date_updated": "Tue, 31 Aug 2010 20:36:44 +0000",
      "permissions": [
        "get-all"
      ],
      "uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AuthorizedConnectApps/CNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json"
    }
  ],
  "end": 0,
  "first_page_uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AuthorizedConnectApps.json?Page=0&PageSize=50",
  "last_page_uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AuthorizedConnectApps.json?Page=0&PageSize=50",
  "next_page_uri": null,
  "num_pages": 1,
  "page": 0,
  "page_size": 50,
  "previous_page_uri": null,
  "start": 0,
  "total": 1,
  "uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AuthorizedConnectApps.json",
  "account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}
<TwilioResponse>
  <AuthorizedConnectApps page="0" pagesize="50" uri="/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AuthorizedConnectApps/" firstpageuri="/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AuthorizedConnectApps/?Page=0&PageSize=50" previouspageuri=""nextpageuri="">
    <AuthorizedConnectApp>
      <ConnectAppSid>CNb989fdd207b04d16aee578018ef5fd93</ConnectAppSid>
      <AccountSid>ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</AccountSid>
	  <Permissions>
	    <Permission>get-all</Permission>
	    <Permission>post-all</Permission>
	  </Permissions>
      <ConnectAppFriendlyName>Joey</ConnectAppFriendlyName>
      <ConnectAppDescription/>
      <ConnectAppCompanyName>Charlie</ConnectAppCompanyName>
      <ConnectAppHomepageUrl>http://www.example.com</ConnectAppHomepageUrl>
    </AuthorizedConnectApp>
    ...
  </AuthorizedConnectApps>
</TwilioResponse>
認証済みConnectアプリケーションをすべて取得する

HTTP POST

サポートしません。

HTTP PUT

サポートしません。

HTTP DELETE

サポートしません。

ヘルプが必要ですか?

誰しもが一度は考える「コーディングって難しい」。そんな時は、お問い合わせフォームから質問してください。 または、Stack Overflow でTwilioタグのついた情報から欲しいものを探してみましょう。

コードサンプルを読み込んでいます...
SDKバージョン:
  • 4.x
  • 5.x
レスポンス形式:
  • JSON
  • xml
SDKバージョン:
  • 6.x
  • 7.x
SDKバージョン:
  • 2.x
  • 3.x
SDKバージョン:
  • 4.x
  • 5.x
SDKバージョン:
  • 5.x
  • 6.x
SDKバージョン:
  • 4.x
  • 5.x
形式:
  • JSON
  • XML
// Download the Node helper library from twilio.com/docs/node/install
// These vars are your accountSid and authToken from twilio.com/user/account
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client
  .authorizedConnectApps('CN47260e643654388faabe8aaa18ea6756')
  .get((err, authorizedApp) => {
    console.log(authorizedApp.connectAppHomepageUrl);
  });
// Download the helper library from https://www.twilio.com/docs/node/install
// Your Account Sid and Auth Token from twilio.com/console
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client.authorizedConnectApps('CN47260e643654388faabe8aaa18ea6756')
  .fetch()
  .then(authorized_connect_app => console.log(authorized_connect_app.connectAppCompanyName))
  .done();
// Download the twilio-csharp library from twilio.com/docs/csharp/install
using System;
using Twilio;
class Example
{
  static void Main(string[] args)
  {
    // Find your Account Sid and Auth Token at twilio.com/user/account
    string AccountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
    string AuthToken = "your_auth_token";
    var twilio = new TwilioRestClient(AccountSid, AuthToken);

    var authorizedApp = twilio.GetAuthorizedConnectApp("CN47260e643654388faabe8aaa18ea6756");

    Console.WriteLine(authorizedApp.HomepageUrl);
  }
}
<?php
// Get the PHP helper library from https://twilio.com/docs/libraries/php
require_once('/path/to/twilio-php/Services/Twilio.php'); // Loads the library

// Your Account Sid and Auth Token from twilio.com/user/account
$sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; 
$token = "your_auth_token"; 
$client = new Services_Twilio($sid, $token);

// Get an object from its sid. If you do not have a sid,
// check out the list resource examples on this page
$authorized_app = $client->account->authorized_connect_apps->get("CN47260e643654388faabe8aaa18ea6756");
echo $authorized_app->connect_app_homepage_url;
# Get twilio-ruby from twilio.com/docs/ruby/install
require 'rubygems' # This line not needed for ruby > 1.8
require 'twilio-ruby'

# Get your Account Sid and Auth Token from twilio.com/user/account
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
client = Twilio::REST::Client.new account_sid, auth_token

# Get an object from its sid. If you do not have a sid,
# check out the list resource examples on this page
authorized_app = client.account
                       .authorized_connect_apps
                       .get('CN47260e643654388faabe8aaa18ea6756')
puts authorized_app.connect_app_homepage_url
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Api.V2010.Account;


class Program 
{
    static void Main(string[] args)
    {
        // Find your Account Sid and Token at twilio.com/console
        const string accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
        const string authToken = "your_auth_token";

        TwilioClient.Init(accountSid, authToken);

        var authorizedConnectApp = AuthorizedConnectAppResource.Fetch(
            pathAccountSid: "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
            pathConnectAppSid: "CN47260e643654388faabe8aaa18ea6756"
        );

        Console.WriteLine(authorizedConnectApp.ConnectAppCompanyName);
    }
}
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once '/path/to/vendor/autoload.php';

use Twilio\Rest\Client;

// Your Account Sid and Auth Token from twilio.com/console
$sid    = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$token  = "your_auth_token";
$twilio = new Client($sid, $token);

$authorized_connect_app = $twilio->authorizedConnectApps("CN47260e643654388faabe8aaa18ea6756")
                                 ->fetch();

print($authorized_connect_app->connectAppCompanyName);
# Download the Python helper library from twilio.com/docs/python/install
from twilio.rest import TwilioRestClient

# Your Account Sid and Auth Token from twilio.com/user/account
account_sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
auth_token = "your_auth_token"
client = TwilioRestClient(account_sid, auth_token)

authorized_app = client.authorized_connect_apps.get(
    "CN47260e643654388faabe8aaa18ea6756"
)
print(authorized_app.homepage_url)
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'rubygems'
require 'twilio-ruby'

# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
@client = Twilio::REST::Client.new(account_sid, auth_token)

authorized_connect_app = @client
  .authorized_connect_apps('CN47260e643654388faabe8aaa18ea6756')
  .fetch

puts authorized_connect_app.connect_app_company_name
// Install the Java helper library from twilio.com/docs/java/install
import com.twilio.sdk.TwilioRestClient;
import com.twilio.sdk.TwilioRestException;
import com.twilio.sdk.resource.instance.AuthorizedConnectApp;

public class Example { 

  // Find your Account Sid and Token at twilio.com/user/account
  public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
  public static final String AUTH_TOKEN = "your_auth_token";

  public static void main(String[] args) throws TwilioRestException {
    TwilioRestClient client = new TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN);

    // Get an object from its sid. If you do not have a sid,
    // check out the list resource examples on this page
    AuthorizedConnectApp authorizedApp = client.getAccount().getAuthorizedConnectApp("CN47260e643654388faabe8aaa18ea6756");
    System.out.println(authorizedApp.getConnectAppHomepageUrl());
    
  }
}
# Download the helper library from https://www.twilio.com/docs/python/install
from twilio.rest import Client


# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
client = Client(account_sid, auth_token)

authorized_connect_app = client \
    .authorized_connect_apps('CN47260e643654388faabe8aaa18ea6756') \
    .fetch()

print(authorized_connect_app.connect_app_company_name)
// Install the Java helper library from twilio.com/docs/java/install

import com.twilio.Twilio;
import com.twilio.rest.api.v2010.account.AuthorizedConnectApp;

public class Example {
    // Find your Account Sid and Token at twilio.com/console
    public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
    public static final String AUTH_TOKEN = "your_auth_token";

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        AuthorizedConnectApp authorizedConnectApp = 
            AuthorizedConnectApp.fetcher(
                "CN47260e643654388faabe8aaa18ea6756")
            .fetch();

        System.out.println(authorizedConnectApp.getConnectAppCompanyName());
    }
}
curl -G https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AuthorizedConnectApps/CN47260e643654388faabe8aaa18ea6756 \
    -u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'
curl -X GET 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AuthorizedConnectApps/CN47260e643654388faabe8aaa18ea6756.json' \
-u ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token
{
  "account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "connect_app_company_name": "aaa",
  "connect_app_description": "alksjdfl;ajseifj;alsijfl;ajself;jasjfjas;lejflj",
  "connect_app_friendly_name": "aaa",
  "connect_app_homepage_url": "http://www.google.com",
  "connect_app_sid": "CN47260e643654388faabe8aaa18ea6756",
  "date_created": "Tue, 31 Aug 2010 20:36:28 +0000",
  "date_updated": "Tue, 31 Aug 2010 20:36:44 +0000",
  "permissions": [
    "get-all"
  ],
  "uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AuthorizedConnectApps/CN47260e643654388faabe8aaa18ea6756.json"
}
<TwilioResponse>
	<AuthorizedConnectApp>
		<AccountSid>ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</AccountSid>
		<Permissions>
			<Permission>get-all</Permission>
			<Permission>post-all</Permission>
		</Permissions>
		<ConnectAppSid>CN47260e643654388faabe8aaa18ea6756</Sid>
		<ConnectAppFriendlyName>My Connect App</FriendlyName>
		<ConnectAppDescription>
			An amazing TwilioConnect application that does amazing things!
		</ConnectAppDescription>
		<ConnectAppCompanyName>My Company</CompanyName>
		<ConnectAppHomepageUrl>http://www.mycompany.com</HomepageUrl>
	</AuthorizedConnectApp>
</TwilioResponse>
SDKバージョン:
  • 4.x
  • 5.x
レスポンス形式:
  • JSON
  • xml
SDKバージョン:
  • 6.x
  • 7.x
SDKバージョン:
  • 2.x
  • 3.x
SDKバージョン:
  • 4.x
  • 5.x
SDKバージョン:
  • 5.x
  • 6.x
SDKバージョン:
  • 4.x
  • 5.x
形式:
  • JSON
  • XML
// Download the Node helper library from twilio.com/docs/node/install
// These vars are your accountSid and authToken from twilio.com/user/account
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client.authorizedConnectApps.list((err, data) => {
  data.authorizedConnectApps.forEach(authorizedApp => {
    console.log(authorizedApp.connectAppHomepageUrl);
  });
});
// Download the helper library from https://www.twilio.com/docs/node/install
// Your Account Sid and Auth Token from twilio.com/console
const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
const authToken = 'your_auth_token';
const client = require('twilio')(accountSid, authToken);

client.authorizedConnectApps
  .each(authorizedConnectApps => console.log(authorizedConnectApps.connectAppCompanyName));
// Download the twilio-csharp library from twilio.com/docs/csharp/install
using System;
using Twilio;
class Example
{
  static void Main(string[] args)
  {
    // Find your Account Sid and Auth Token at twilio.com/user/account
    string AccountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
    string AuthToken = "your_auth_token";
    var twilio = new TwilioRestClient(AccountSid, AuthToken);

    var authorizedApps = twilio.ListAuthorizedConnectApps(null, null);

    foreach (var authorizedApp in authorizedApps.AuthorizedConnectApps)
    {
      Console.WriteLine(authorizedApp.HomepageUrl);
    }
  }
}
<?php
// Get the PHP helper library from https://twilio.com/docs/libraries/php
require_once('/path/to/twilio-php/Services/Twilio.php'); // Loads the library

// Your Account Sid and Auth Token from twilio.com/user/account
$sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; 
$token = "your_auth_token"; 
$client = new Services_Twilio($sid, $token);

// Loop over the list of authorized_apps and echo a property for each one
foreach ($client->account->authorized_connect_apps as $authorized_app) {
    echo $authorized_app->connect_app_homepage_url;
}
# Get twilio-ruby from twilio.com/docs/ruby/install
require 'rubygems' # This line not needed for ruby > 1.8
require 'twilio-ruby'

# Get your Account Sid and Auth Token from twilio.com/user/account
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
@client = Twilio::REST::Client.new account_sid, auth_token

# Loop over authorized_apps and print out a property for each one
@client.account.authorized_connect_apps.list.each do |authorized_app|
  puts authorized_app.connect_app_homepage_url
end
// Install the C# / .NET helper library from twilio.com/docs/csharp/install

using System;
using Twilio;
using Twilio.Rest.Api.V2010.Account;


class Program 
{
    static void Main(string[] args)
    {
        // Find your Account Sid and Token at twilio.com/console
        const string accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
        const string authToken = "your_auth_token";

        TwilioClient.Init(accountSid, authToken);

        var authorizedConnectApps = AuthorizedConnectAppResource.Read(
            pathAccountSid: "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
        );

        foreach(var record in authorizedConnectApps)
        {
           Console.WriteLine(record.ConnectAppCompanyName);
        }
    }
}
<?php

// Update the path below to your autoload.php,
// see https://getcomposer.org/doc/01-basic-usage.md
require_once '/path/to/vendor/autoload.php';

use Twilio\Rest\Client;

// Your Account Sid and Auth Token from twilio.com/console
$sid    = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$token  = "your_auth_token";
$twilio = new Client($sid, $token);

$authorizedConnectApps = $twilio->authorizedConnectApps
                                ->read();

foreach ($authorizedConnectApps as $record) {
    print($record->connectAppCompanyName);
}
# Download the Python helper library from twilio.com/docs/python/install
from twilio.rest import TwilioRestClient

# Your Account Sid and Auth Token from twilio.com/user/account
account_sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
auth_token = "your_auth_token"
client = TwilioRestClient(account_sid, auth_token)

# A list of authorized_app objects with the properties described above
authorized_apps = client.authorized_connect_apps.list()
# Download the helper library from https://www.twilio.com/docs/ruby/install
require 'rubygems'
require 'twilio-ruby'

# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
@client = Twilio::REST::Client.new(account_sid, auth_token)

authorized_connect_apps = @client.authorized_connect_apps.list

authorized_connect_apps.each do |record|
  puts record.connect_app_company_name
end
// Install the Java helper library from twilio.com/docs/java/install
import com.twilio.sdk.TwilioRestClient;
import com.twilio.sdk.TwilioRestException;
import com.twilio.sdk.resource.instance.AuthorizedConnectApp;
import com.twilio.sdk.resource.list.AuthorizedConnectAppList;

public class Example { 

  // Find your Account Sid and Token at twilio.com/user/account
  public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
  public static final String AUTH_TOKEN = "your_auth_token";

  public static void main(String[] args) throws TwilioRestException {
    TwilioRestClient client = new TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN);

    
    
    AuthorizedConnectAppList authorizedApps = client.getAccount().getAuthorizedConnectApps();
    
    // Loop over authorizedApps and print out a property for each one.
    for (AuthorizedConnectApp authorizedApp : authorizedApps) {
      System.out.println(authorizedApp.getConnectAppHomepageUrl());
    }
    
  }
}
# Download the helper library from https://www.twilio.com/docs/python/install
from twilio.rest import Client


# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
client = Client(account_sid, auth_token)

authorized_connect_apps = client.authorized_connect_apps.list()

for record in authorized_connect_apps:
    print(record.connect_app_company_name)
// Install the Java helper library from twilio.com/docs/java/install

import com.twilio.Twilio;
import com.twilio.base.ResourceSet;
import com.twilio.rest.api.v2010.account.AuthorizedConnectApp;

public class Example {
    // Find your Account Sid and Token at twilio.com/console
    public static final String ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
    public static final String AUTH_TOKEN = "your_auth_token";

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        ResourceSet<AuthorizedConnectApp> authorizedConnectApps = 
            AuthorizedConnectApp.reader()
            .read();

        for(AuthorizedConnectApp record : authorizedConnectApps) {
            System.out.println(record.getConnectAppCompanyName());
        }
    }
}
curl -G https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AuthorizedConnectApps \
    -u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token'
curl -X GET 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AuthorizedConnectApps.json' \
-u ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token
{
  "authorized_connect_apps": [
    {
      "account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
      "connect_app_company_name": "YOUR OTHER MOM",
      "connect_app_description": "alksjdfl;ajseifj;alsijfl;ajself;jasjfjas;lejflj",
      "connect_app_friendly_name": "YOUR MOM",
      "connect_app_homepage_url": "http://www.google.com",
      "connect_app_sid": "CNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
      "date_created": "Tue, 31 Aug 2010 20:36:28 +0000",
      "date_updated": "Tue, 31 Aug 2010 20:36:44 +0000",
      "permissions": [
        "get-all"
      ],
      "uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AuthorizedConnectApps/CNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json"
    }
  ],
  "end": 0,
  "first_page_uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AuthorizedConnectApps.json?Page=0&PageSize=50",
  "last_page_uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AuthorizedConnectApps.json?Page=0&PageSize=50",
  "next_page_uri": null,
  "num_pages": 1,
  "page": 0,
  "page_size": 50,
  "previous_page_uri": null,
  "start": 0,
  "total": 1,
  "uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AuthorizedConnectApps.json",
  "account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}
<TwilioResponse>
  <AuthorizedConnectApps page="0" pagesize="50" uri="/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AuthorizedConnectApps/" firstpageuri="/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AuthorizedConnectApps/?Page=0&PageSize=50" previouspageuri=""nextpageuri="">
    <AuthorizedConnectApp>
      <ConnectAppSid>CNb989fdd207b04d16aee578018ef5fd93</ConnectAppSid>
      <AccountSid>ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</AccountSid>
	  <Permissions>
	    <Permission>get-all</Permission>
	    <Permission>post-all</Permission>
	  </Permissions>
      <ConnectAppFriendlyName>Joey</ConnectAppFriendlyName>
      <ConnectAppDescription/>
      <ConnectAppCompanyName>Charlie</ConnectAppCompanyName>
      <ConnectAppHomepageUrl>http://www.example.com</ConnectAppHomepageUrl>
    </AuthorizedConnectApp>
    ...
  </AuthorizedConnectApps>
</TwilioResponse>