com.twilio.sdk.resource.list.AuthorizedConnectAppList Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of twilio-java-sdk Show documentation
Show all versions of twilio-java-sdk Show documentation
Release Candidate for Next-Gen Twilio Java Helper Library
package com.twilio.sdk.resource.list;
import com.twilio.sdk.TwilioRestClient;
import com.twilio.sdk.resource.ListResource;
import com.twilio.sdk.resource.instance.AuthorizedConnectApp;
import java.util.Map;
/**
* The ConnectApps list resource shows all of the Connect Apps that you have
* authorized within your Twilio account. The instance resource shows you the
* permissions you have authorized for a single Connect App as well as
* information about the Connect App itself.
*
* For more information see https://www.twilio.com/docs/api/rest/authorized-connect-apps
*/
public class AuthorizedConnectAppList extends ListResource {
/**
* Instantiates a new AuthorizedConnectApp list.
*
* @param client
* the client
*/
public AuthorizedConnectAppList(TwilioRestClient client) {
super(client);
}
/**
* Instantiates a new AuthorizedConnectApp list.
*
* @param client
* the client
* @param filters
* the filters
*/
public AuthorizedConnectAppList(TwilioRestClient client, Map filters) {
super(client, filters);
}
/*
* (non-Javadoc)
*
* @see com.twilio.sdk.resource.Resource#getResourceLocation()
*/
@Override
protected String getResourceLocation() {
return "/" + TwilioRestClient.DEFAULT_VERSION + "/Accounts/"
+ this.getRequestAccountSid() + "/AuthorizedConnectApps.json";
}
/*
* (non-Javadoc)
*
* @see
* com.twilio.sdk.resource.ListResource#makeNew(com.twilio.sdk.TwilioRestClient
* , java.util.Map)
*/
@Override
protected AuthorizedConnectApp makeNew(TwilioRestClient client,
Map params) {
return new AuthorizedConnectApp(client, params);
}
/*
* (non-Javadoc)
*
* @see com.twilio.sdk.resource.ListResource#getListKey()
*/
@Override
protected String getListKey() {
return "authorized_connect_apps";
}
}