_id stringlengths 2 7 | title stringlengths 1 88 | partition stringclasses 3
values | text stringlengths 31 13.1k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
q29200 | DeviceList.get | train | def get(self, sid):
"""
Constructs a DeviceContext
:param sid: A string that uniquely identifies the Device.
:returns: twilio.rest.preview.deployed_devices.fleet.device.DeviceContext
:rtype: | python | {
"resource": ""
} |
q29201 | DevicePage.get_instance | train | def get_instance(self, payload):
"""
Build an instance of DeviceInstance
:param dict payload: Payload response from the API
:returns: twilio.rest.preview.deployed_devices.fleet.device.DeviceInstance
:rtype: | python | {
"resource": ""
} |
q29202 | RecordingList.get | train | def get(self, sid):
"""
Constructs a RecordingContext
:param sid: The unique string that identifies the resource
:returns: twilio.rest.api.v2010.account.recording.RecordingContext
:rtype: | python | {
"resource": ""
} |
q29203 | RecordingContext.add_on_results | train | def add_on_results(self):
"""
Access the add_on_results
:returns: twilio.rest.api.v2010.account.recording.add_on_result.AddOnResultList
:rtype: twilio.rest.api.v2010.account.recording.add_on_result.AddOnResultList
"""
if self._add_on_results is None:
self._ad... | python | {
"resource": ""
} |
q29204 | CallSummaryContext.fetch | train | def fetch(self):
"""
Fetch a CallSummaryInstance
:returns: Fetched CallSummaryInstance
:rtype: twilio.rest.insights.v1.summary.CallSummaryInstance
"""
params = values.of({})
payload = self._version.fetch(
| python | {
"resource": ""
} |
q29205 | AuthTypeCallsPage.get_instance | train | def get_instance(self, payload):
"""
Build an instance of AuthTypeCallsInstance
:param dict payload: Payload response from the API
:returns: twilio.rest.api.v2010.account.sip.domain.auth_types.auth_calls_mapping.AuthTypeCallsInstance
:rtype: twilio.rest.api.v2010.account.sip.do... | python | {
"resource": ""
} |
q29206 | prefixed_collapsible_map | train | def prefixed_collapsible_map(m, prefix):
"""
Return a dict of params corresponding to those in m with the added prefix
"""
if m == values.unset:
return {}
def flatten_dict(d, result={}, prv_keys=[]):
for k, v in d.items():
if isinstance(v, dict):
flatten_... | python | {
"resource": ""
} |
q29207 | object | train | def object(obj):
"""
Return a jsonified string represenation of obj if obj is jsonifiable else
return obj untouched
"""
if | python | {
"resource": ""
} |
q29208 | map | train | def map(lst, serialize_func):
"""
Applies serialize_func to every element in lst
"""
if not isinstance(lst, list):
| python | {
"resource": ""
} |
q29209 | AccessToken.add_grant | train | def add_grant(self, grant):
"""Add a grant to this AccessToken"""
if not isinstance(grant, AccessTokenGrant): | python | {
"resource": ""
} |
q29210 | AvailablePhoneNumberCountryList.get | train | def get(self, country_code):
"""
Constructs a AvailablePhoneNumberCountryContext
:param country_code: The ISO country code of the country to fetch available phone number information about
:returns: twilio.rest.api.v2010.account.available_phone_number.AvailablePhoneNumberCountryContext
... | python | {
"resource": ""
} |
q29211 | AvailablePhoneNumberCountryPage.get_instance | train | def get_instance(self, payload):
"""
Build an instance of AvailablePhoneNumberCountryInstance
:param dict payload: Payload response from the API
:returns: twilio.rest.api.v2010.account.available_phone_number.AvailablePhoneNumberCountryInstance
:rtype: twilio.rest.api.v2010.acco... | python | {
"resource": ""
} |
q29212 | AvailablePhoneNumberCountryContext.fetch | train | def fetch(self):
"""
Fetch a AvailablePhoneNumberCountryInstance
:returns: Fetched AvailablePhoneNumberCountryInstance
:rtype: twilio.rest.api.v2010.account.available_phone_number.AvailablePhoneNumberCountryInstance
"""
params = values.of({})
payload = self._ver... | python | {
"resource": ""
} |
q29213 | AvailablePhoneNumberCountryContext.local | train | def local(self):
"""
Access the local
:returns: twilio.rest.api.v2010.account.available_phone_number.local.LocalList
:rtype: twilio.rest.api.v2010.account.available_phone_number.local.LocalList
| python | {
"resource": ""
} |
q29214 | AvailablePhoneNumberCountryContext.national | train | def national(self):
"""
Access the national
:returns: twilio.rest.api.v2010.account.available_phone_number.national.NationalList
:rtype: twilio.rest.api.v2010.account.available_phone_number.national.NationalList
"""
if self._national is None:
self._national =... | python | {
"resource": ""
} |
q29215 | AvailablePhoneNumberCountryContext.voip | train | def voip(self):
"""
Access the voip
:returns: twilio.rest.api.v2010.account.available_phone_number.voip.VoipList
:rtype: twilio.rest.api.v2010.account.available_phone_number.voip.VoipList
| python | {
"resource": ""
} |
q29216 | AvailablePhoneNumberCountryContext.shared_cost | train | def shared_cost(self):
"""
Access the shared_cost
:returns: twilio.rest.api.v2010.account.available_phone_number.shared_cost.SharedCostList
:rtype: twilio.rest.api.v2010.account.available_phone_number.shared_cost.SharedCostList
"""
if self._shared_cost is None:
... | python | {
"resource": ""
} |
q29217 | AvailablePhoneNumberCountryContext.machine_to_machine | train | def machine_to_machine(self):
"""
Access the machine_to_machine
:returns: twilio.rest.api.v2010.account.available_phone_number.machine_to_machine.MachineToMachineList
:rtype: twilio.rest.api.v2010.account.available_phone_number.machine_to_machine.MachineToMachineList
"""
... | python | {
"resource": ""
} |
q29218 | PublishedTrackList.get | train | def get(self, sid):
"""
Constructs a PublishedTrackContext
:param sid: A 34 character string that uniquely identifies this resource.
:returns: twilio.rest.video.v1.room.room_participant.room_participant_published_track.PublishedTrackContext
:rtype: twilio.rest.video.v1.room.roo... | python | {
"resource": ""
} |
q29219 | PublishedTrackPage.get_instance | train | def get_instance(self, payload):
"""
Build an instance of PublishedTrackInstance
:param dict payload: Payload response from the API
:returns: twilio.rest.video.v1.room.room_participant.room_participant_published_track.PublishedTrackInstance
:rtype: twilio.rest.video.v1.room.roo... | python | {
"resource": ""
} |
q29220 | PublishedTrackContext.fetch | train | def fetch(self):
"""
Fetch a PublishedTrackInstance
:returns: Fetched PublishedTrackInstance
:rtype: twilio.rest.video.v1.room.room_participant.room_participant_published_track.PublishedTrackInstance
"""
params = values.of({})
payload = self._version.fetch(
... | python | {
"resource": ""
} |
q29221 | QueueList.get | train | def get(self, sid):
"""
Constructs a QueueContext
:param sid: The unique string that identifies this resource
:returns: twilio.rest.api.v2010.account.queue.QueueContext
| python | {
"resource": ""
} |
q29222 | QueuePage.get_instance | train | def get_instance(self, payload):
"""
Build an instance of QueueInstance
:param dict payload: Payload response from the API
:returns: twilio.rest.api.v2010.account.queue.QueueInstance
| python | {
"resource": ""
} |
q29223 | QueueInstance.update | train | def update(self, friendly_name=values.unset, max_size=values.unset):
"""
Update the QueueInstance
:param unicode friendly_name: A string to describe this resource
:param unicode max_size: The max number of calls allowed in the queue
:returns: Updated QueueInstance
| python | {
"resource": ""
} |
q29224 | ParticipantList.stream | train | def stream(self, muted=values.unset, hold=values.unset, coaching=values.unset,
limit=None, page_size=None):
"""
Streams ParticipantInstance records from the API as a generator stream.
This operation lazily loads records as efficiently as possible until the limit
is reached... | python | {
"resource": ""
} |
q29225 | ParticipantContext.fetch | train | def fetch(self):
"""
Fetch a ParticipantInstance
:returns: Fetched ParticipantInstance
:rtype: twilio.rest.api.v2010.account.conference.participant.ParticipantInstance
"""
params = values.of({})
payload = self._version.fetch(
'GET',
self.... | python | {
"resource": ""
} |
q29226 | SyncMapPermissionList.get | train | def get(self, identity):
"""
Constructs a SyncMapPermissionContext
:param identity: Identity of the user to whom the Sync Map Permission applies.
:returns: twilio.rest.sync.v1.service.sync_map.sync_map_permission.SyncMapPermissionContext
:rtype: twilio.rest.sync.v1.service.sync... | python | {
"resource": ""
} |
q29227 | SyncMapPermissionPage.get_instance | train | def get_instance(self, payload):
"""
Build an instance of SyncMapPermissionInstance
:param dict payload: Payload response from the API
:returns: twilio.rest.sync.v1.service.sync_map.sync_map_permission.SyncMapPermissionInstance
:rtype: twilio.rest.sync.v1.service.sync_map.sync_... | python | {
"resource": ""
} |
q29228 | SyncMapPermissionContext.fetch | train | def fetch(self):
"""
Fetch a SyncMapPermissionInstance
:returns: Fetched SyncMapPermissionInstance
:rtype: twilio.rest.sync.v1.service.sync_map.sync_map_permission.SyncMapPermissionInstance
"""
params = values.of({})
payload = self._version.fetch(
'G... | python | {
"resource": ""
} |
q29229 | VerificationList.get | train | def get(self, sid):
"""
Constructs a VerificationContext
:param sid: The unique string that identifies the resource
:returns: twilio.rest.verify.v2.service.verification.VerificationContext
:rtype: | python | {
"resource": ""
} |
q29230 | VerificationPage.get_instance | train | def get_instance(self, payload):
"""
Build an instance of VerificationInstance
:param dict payload: Payload response from the API
:returns: twilio.rest.verify.v2.service.verification.VerificationInstance
| python | {
"resource": ""
} |
q29231 | VerificationContext.update | train | def update(self, status):
"""
Update the VerificationInstance
:param VerificationInstance.Status status: The new status of the resource
:returns: Updated VerificationInstance
:rtype: twilio.rest.verify.v2.service.verification.VerificationInstance
"""
data = valu... | python | {
"resource": ""
} |
q29232 | CertificateList.get | train | def get(self, sid):
"""
Constructs a CertificateContext
:param sid: A string that uniquely identifies the Certificate.
:returns: twilio.rest.preview.deployed_devices.fleet.certificate.CertificateContext
:rtype: | python | {
"resource": ""
} |
q29233 | CertificatePage.get_instance | train | def get_instance(self, payload):
"""
Build an instance of CertificateInstance
:param dict payload: Payload response from the API
:returns: twilio.rest.preview.deployed_devices.fleet.certificate.CertificateInstance
:rtype: | python | {
"resource": ""
} |
q29234 | WorkspaceStatisticsPage.get_instance | train | def get_instance(self, payload):
"""
Build an instance of WorkspaceStatisticsInstance
:param dict payload: Payload response from the API
:returns: twilio.rest.taskrouter.v1.workspace.workspace_statistics.WorkspaceStatisticsInstance
:rtype: twilio.rest.taskrouter.v1.workspace.wo... | python | {
"resource": ""
} |
q29235 | SyncListPermissionList.get | train | def get(self, identity):
"""
Constructs a SyncListPermissionContext
:param identity: Identity of the user to whom the Sync List Permission applies.
:returns: twilio.rest.sync.v1.service.sync_list.sync_list_permission.SyncListPermissionContext
:rtype: twilio.rest.sync.v1.service... | python | {
"resource": ""
} |
q29236 | SyncListPermissionPage.get_instance | train | def get_instance(self, payload):
"""
Build an instance of SyncListPermissionInstance
:param dict payload: Payload response from the API
:returns: twilio.rest.sync.v1.service.sync_list.sync_list_permission.SyncListPermissionInstance
:rtype: twilio.rest.sync.v1.service.sync_list.... | python | {
"resource": ""
} |
q29237 | SyncListPermissionContext.fetch | train | def fetch(self):
"""
Fetch a SyncListPermissionInstance
:returns: Fetched SyncListPermissionInstance
:rtype: twilio.rest.sync.v1.service.sync_list.sync_list_permission.SyncListPermissionInstance
"""
params = values.of({})
payload = self._version.fetch(
... | python | {
"resource": ""
} |
q29238 | SyncListPermissionContext.update | train | def update(self, read, write, manage):
"""
Update the SyncListPermissionInstance
:param bool read: Read access.
:param bool write: Write access.
:param bool manage: Manage access.
:returns: Updated SyncListPermissionInstance
:rtype: twilio.rest.sync.v1.service.s... | python | {
"resource": ""
} |
q29239 | TaskQueueList.page | train | def page(self, friendly_name=values.unset,
evaluate_worker_attributes=values.unset, worker_sid=values.unset,
page_token=values.unset, page_number=values.unset,
page_size=values.unset):
"""
Retrieve a single page of TaskQueueInstance records from the API.
Re... | python | {
"resource": ""
} |
q29240 | TaskQueueList.create | train | def create(self, friendly_name, target_workers=values.unset,
max_reserved_workers=values.unset, task_order=values.unset,
reservation_activity_sid=values.unset,
assignment_activity_sid=values.unset):
"""
Create a new TaskQueueInstance
:param unicode f... | python | {
"resource": ""
} |
q29241 | TaskQueueList.get | train | def get(self, sid):
"""
Constructs a TaskQueueContext
:param sid: The sid
:returns: twilio.rest.taskrouter.v1.workspace.task_queue.TaskQueueContext
:rtype: | python | {
"resource": ""
} |
q29242 | TaskQueuePage.get_instance | train | def get_instance(self, payload):
"""
Build an instance of TaskQueueInstance
:param dict payload: Payload response from the API
:returns: twilio.rest.taskrouter.v1.workspace.task_queue.TaskQueueInstance
:rtype: | python | {
"resource": ""
} |
q29243 | TaskQueueContext.fetch | train | def fetch(self):
"""
Fetch a TaskQueueInstance
:returns: Fetched TaskQueueInstance
:rtype: twilio.rest.taskrouter.v1.workspace.task_queue.TaskQueueInstance
"""
params = values.of({})
| python | {
"resource": ""
} |
q29244 | TaskQueueInstance.update | train | def update(self, friendly_name=values.unset, target_workers=values.unset,
reservation_activity_sid=values.unset,
assignment_activity_sid=values.unset,
max_reserved_workers=values.unset, task_order=values.unset):
"""
Update the TaskQueueInstance
:para... | python | {
"resource": ""
} |
q29245 | WorkersStatisticsPage.get_instance | train | def get_instance(self, payload):
"""
Build an instance of WorkersStatisticsInstance
:param dict payload: Payload response from the API
:returns: twilio.rest.taskrouter.v1.workspace.worker.workers_statistics.WorkersStatisticsInstance
:rtype: twilio.rest.taskrouter.v1.workspace.w... | python | {
"resource": ""
} |
q29246 | UserChannelList.get | train | def get(self, channel_sid):
"""
Constructs a UserChannelContext
:param channel_sid: The SID of the Channel that has the User Channel to fetch
:returns: twilio.rest.chat.v2.service.user.user_channel.UserChannelContext
:rtype: twilio.rest.chat.v2.service.user.user_channel.UserCha... | python | {
"resource": ""
} |
q29247 | UserChannelPage.get_instance | train | def get_instance(self, payload):
"""
Build an instance of UserChannelInstance
:param dict payload: Payload response from the API
:returns: twilio.rest.chat.v2.service.user.user_channel.UserChannelInstance
| python | {
"resource": ""
} |
q29248 | UserChannelContext.fetch | train | def fetch(self):
"""
Fetch a UserChannelInstance
:returns: Fetched UserChannelInstance
:rtype: twilio.rest.chat.v2.service.user.user_channel.UserChannelInstance
"""
params = values.of({})
payload = self._version.fetch(
'GET',
self._uri,
... | python | {
"resource": ""
} |
q29249 | UserChannelContext.update | train | def update(self, notification_level):
"""
Update the UserChannelInstance
:param UserChannelInstance.NotificationLevel notification_level: The push notification level to assign to the User Channel
:returns: Updated UserChannelInstance
:rtype: twilio.rest.chat.v2.service.user.use... | python | {
"resource": ""
} |
q29250 | WorkerStatisticsList.get | train | def get(self):
"""
Constructs a WorkerStatisticsContext
:returns: twilio.rest.taskrouter.v1.workspace.worker.worker_statistics.WorkerStatisticsContext
:rtype: twilio.rest.taskrouter.v1.workspace.worker.worker_statistics.WorkerStatisticsContext
"""
| python | {
"resource": ""
} |
q29251 | WorkerStatisticsPage.get_instance | train | def get_instance(self, payload):
"""
Build an instance of WorkerStatisticsInstance
:param dict payload: Payload response from the API
:returns: twilio.rest.taskrouter.v1.workspace.worker.worker_statistics.WorkerStatisticsInstance
:rtype: twilio.rest.taskrouter.v1.workspace.work... | python | {
"resource": ""
} |
q29252 | WorkerStatisticsInstance.fetch | train | def fetch(self, minutes=values.unset, start_date=values.unset,
end_date=values.unset, task_channel=values.unset):
"""
Fetch a WorkerStatisticsInstance
:param unicode minutes: Filter cumulative statistics by up to 'x' minutes in the past.
:param datetime start_date: Filter ... | python | {
"resource": ""
} |
q29253 | example | train | def example():
"""
Example of using the ValidationClient for signed requests to Twilio.
This is only available to enterprise customers.
This will walkthrough creating an API Key, generating an RSA keypair, setting up a
ValidationClient with these values and making requests with the client.
"""
... | python | {
"resource": ""
} |
q29254 | SyncMapItemList.get | train | def get(self, key):
"""
Constructs a SyncMapItemContext
:param key: The key
:returns: twilio.rest.preview.sync.service.sync_map.sync_map_item.SyncMapItemContext
:rtype: twilio.rest.preview.sync.service.sync_map.sync_map_item.SyncMapItemContext
"""
return SyncMap... | python | {
"resource": ""
} |
q29255 | SyncMapItemPage.get_instance | train | def get_instance(self, payload):
"""
Build an instance of SyncMapItemInstance
:param dict payload: Payload response from the API
:returns: twilio.rest.preview.sync.service.sync_map.sync_map_item.SyncMapItemInstance
:rtype: twilio.rest.preview.sync.service.sync_map.sync_map_item... | python | {
"resource": ""
} |
q29256 | SyncMapItemContext.fetch | train | def fetch(self):
"""
Fetch a SyncMapItemInstance
:returns: Fetched SyncMapItemInstance
:rtype: twilio.rest.preview.sync.service.sync_map.sync_map_item.SyncMapItemInstance
"""
params = values.of({})
payload = self._version.fetch(
'GET',
se... | python | {
"resource": ""
} |
q29257 | ServiceContext.channels | train | def channels(self):
"""
Access the channels
:returns: twilio.rest.chat.v2.service.channel.ChannelList
:rtype: twilio.rest.chat.v2.service.channel.ChannelList
| python | {
"resource": ""
} |
q29258 | ServiceContext.roles | train | def roles(self):
"""
Access the roles
:returns: twilio.rest.chat.v2.service.role.RoleList
:rtype: twilio.rest.chat.v2.service.role.RoleList
| python | {
"resource": ""
} |
q29259 | ServiceContext.users | train | def users(self):
"""
Access the users
:returns: twilio.rest.chat.v2.service.user.UserList
:rtype: twilio.rest.chat.v2.service.user.UserList
| python | {
"resource": ""
} |
q29260 | ServiceContext.bindings | train | def bindings(self):
"""
Access the bindings
:returns: twilio.rest.chat.v2.service.binding.BindingList
:rtype: twilio.rest.chat.v2.service.binding.BindingList
| python | {
"resource": ""
} |
q29261 | ChannelList.page | train | def page(self, type=values.unset, page_token=values.unset,
page_number=values.unset, page_size=values.unset):
"""
Retrieve a single page of ChannelInstance records from the API.
Request is executed immediately
:param ChannelInstance.ChannelType type: The type
:param... | python | {
"resource": ""
} |
q29262 | ChannelList.get | train | def get(self, sid):
"""
Constructs a ChannelContext
:param sid: The sid
:returns: twilio.rest.chat.v1.service.channel.ChannelContext
| python | {
"resource": ""
} |
q29263 | ChannelPage.get_instance | train | def get_instance(self, payload):
"""
Build an instance of ChannelInstance
:param dict payload: Payload response from the API
:returns: twilio.rest.chat.v1.service.channel.ChannelInstance
| python | {
"resource": ""
} |
q29264 | ChannelContext.update | train | def update(self, friendly_name=values.unset, unique_name=values.unset,
attributes=values.unset):
"""
Update the ChannelInstance
:param unicode friendly_name: A human-readable name for the Channel.
:param unicode unique_name: A unique, addressable name for the Channel.
... | python | {
"resource": ""
} |
q29265 | ChannelContext.invites | train | def invites(self):
"""
Access the invites
:returns: twilio.rest.chat.v1.service.channel.invite.InviteList
:rtype: twilio.rest.chat.v1.service.channel.invite.InviteList
| python | {
"resource": ""
} |
q29266 | ApplicationList.create | train | def create(self, friendly_name, api_version=values.unset,
voice_url=values.unset, voice_method=values.unset,
voice_fallback_url=values.unset, voice_fallback_method=values.unset,
status_callback=values.unset, status_callback_method=values.unset,
voice_caller_id... | python | {
"resource": ""
} |
q29267 | ApplicationList.get | train | def get(self, sid):
"""
Constructs a ApplicationContext
:param sid: The unique string that identifies the resource
:returns: twilio.rest.api.v2010.account.application.ApplicationContext
:rtype: | python | {
"resource": ""
} |
q29268 | ApplicationPage.get_instance | train | def get_instance(self, payload):
"""
Build an instance of ApplicationInstance
:param dict payload: Payload response from the API
:returns: twilio.rest.api.v2010.account.application.ApplicationInstance
| python | {
"resource": ""
} |
q29269 | ApplicationInstance.update | train | def update(self, friendly_name=values.unset, api_version=values.unset,
voice_url=values.unset, voice_method=values.unset,
voice_fallback_url=values.unset, voice_fallback_method=values.unset,
status_callback=values.unset, status_callback_method=values.unset,
vo... | python | {
"resource": ""
} |
q29270 | VoiceList.numbers | train | def numbers(self):
"""
Access the numbers
:returns: twilio.rest.pricing.v1.voice.number.NumberList
:rtype: twilio.rest.pricing.v1.voice.number.NumberList
"""
| python | {
"resource": ""
} |
q29271 | ShortCodeList.create | train | def create(self, sid):
"""
Create a new ShortCodeInstance
:param unicode sid: The SID of a Twilio ShortCode resource
:returns: Newly created ShortCodeInstance
:rtype: twilio.rest.proxy.v1.service.short_code.ShortCodeInstance
"""
data = values.of({'Sid': sid, })
... | python | {
"resource": ""
} |
q29272 | ExportContext.fetch | train | def fetch(self):
"""
Fetch a ExportInstance
:returns: Fetched ExportInstance
:rtype: twilio.rest.preview.bulk_exports.export.ExportInstance
| python | {
"resource": ""
} |
q29273 | ExportContext.days | train | def days(self):
"""
Access the days
:returns: twilio.rest.preview.bulk_exports.export.day.DayList
:rtype: twilio.rest.preview.bulk_exports.export.day.DayList
| python | {
"resource": ""
} |
q29274 | MessageInteractionList.create | train | def create(self, body=values.unset, media_url=values.unset):
"""
Create a new MessageInteractionInstance
:param unicode body: Message body
:param unicode media_url: Reserved
:returns: Newly created MessageInteractionInstance
:rtype: twilio.rest.proxy.v1.service.session.... | python | {
"resource": ""
} |
q29275 | MessageInteractionPage.get_instance | train | def get_instance(self, payload):
"""
Build an instance of MessageInteractionInstance
:param dict payload: Payload response from the API
:returns: twilio.rest.proxy.v1.service.session.participant.message_interaction.MessageInteractionInstance
:rtype: twilio.rest.proxy.v1.service... | python | {
"resource": ""
} |
q29276 | SimList.stream | train | def stream(self, status=values.unset, iccid=values.unset,
rate_plan=values.unset, e_id=values.unset,
sim_registration_code=values.unset, limit=None, page_size=None):
"""
Streams SimInstance records from the API as a generator stream.
This operation lazily loads reco... | python | {
"resource": ""
} |
q29277 | SimList.page | train | def page(self, status=values.unset, iccid=values.unset, rate_plan=values.unset,
e_id=values.unset, sim_registration_code=values.unset,
page_token=values.unset, page_number=values.unset,
page_size=values.unset):
"""
Retrieve a single page of SimInstance records from... | python | {
"resource": ""
} |
q29278 | RoleList.create | train | def create(self, friendly_name, type, permission):
"""
Create a new RoleInstance
:param unicode friendly_name: A string to describe the new resource
:param RoleInstance.RoleType type: The type of role
:param unicode permission: A permission the role should have
:returns... | python | {
"resource": ""
} |
q29279 | RoleList.get | train | def get(self, sid):
"""
Constructs a RoleContext
:param sid: The unique string that identifies the resource
:returns: twilio.rest.chat.v2.service.role.RoleContext
| python | {
"resource": ""
} |
q29280 | RolePage.get_instance | train | def get_instance(self, payload):
"""
Build an instance of RoleInstance
:param dict payload: Payload response from the API
:returns: twilio.rest.chat.v2.service.role.RoleInstance
| python | {
"resource": ""
} |
q29281 | RoleContext.update | train | def update(self, permission):
"""
Update the RoleInstance
:param unicode permission: A permission the role should have
:returns: Updated RoleInstance
:rtype: twilio.rest.chat.v2.service.role.RoleInstance
"""
| python | {
"resource": ""
} |
q29282 | StepList.get | train | def get(self, sid):
"""
Constructs a StepContext
:param sid: Step Sid.
:returns: twilio.rest.studio.v1.flow.engagement.step.StepContext
:rtype: twilio.rest.studio.v1.flow.engagement.step.StepContext
"""
return StepContext(
self._version,
| python | {
"resource": ""
} |
q29283 | StepPage.get_instance | train | def get_instance(self, payload):
"""
Build an instance of StepInstance
:param dict payload: Payload response from the API
:returns: twilio.rest.studio.v1.flow.engagement.step.StepInstance
:rtype: twilio.rest.studio.v1.flow.engagement.step.StepInstance
"""
return... | python | {
"resource": ""
} |
q29284 | StepContext.fetch | train | def fetch(self):
"""
Fetch a StepInstance
:returns: Fetched StepInstance
:rtype: twilio.rest.studio.v1.flow.engagement.step.StepInstance
"""
params = values.of({})
payload = self._version.fetch(
'GET',
self._uri,
params=params... | python | {
"resource": ""
} |
q29285 | example | train | def example():
"""
Some example usage of different twilio resources.
"""
client = Client(ACCOUNT_SID, AUTH_TOKEN)
# Get all messages
all_messages = client.messages.list()
print('There are {} messages in your account.'.format(len(all_messages)))
# Get only last 10 messages...
some_m... | python | {
"resource": ""
} |
q29286 | WorkflowRealTimeStatisticsList.get | train | def get(self):
"""
Constructs a WorkflowRealTimeStatisticsContext
:returns: twilio.rest.taskrouter.v1.workspace.workflow.workflow_real_time_statistics.WorkflowRealTimeStatisticsContext
:rtype: twilio.rest.taskrouter.v1.workspace.workflow.workflow_real_time_statistics.WorkflowRealTimeSta... | python | {
"resource": ""
} |
q29287 | WorkflowRealTimeStatisticsPage.get_instance | train | def get_instance(self, payload):
"""
Build an instance of WorkflowRealTimeStatisticsInstance
:param dict payload: Payload response from the API
:returns: twilio.rest.taskrouter.v1.workspace.workflow.workflow_real_time_statistics.WorkflowRealTimeStatisticsInstance
:rtype: twilio... | python | {
"resource": ""
} |
q29288 | ServiceContext.environments | train | def environments(self):
"""
Access the environments
:returns: twilio.rest.serverless.v1.service.environment.EnvironmentList
:rtype: twilio.rest.serverless.v1.service.environment.EnvironmentList
| python | {
"resource": ""
} |
q29289 | ServiceContext.functions | train | def functions(self):
"""
Access the functions
:returns: twilio.rest.serverless.v1.service.function.FunctionList
:rtype: twilio.rest.serverless.v1.service.function.FunctionList
| python | {
"resource": ""
} |
q29290 | ServiceContext.assets | train | def assets(self):
"""
Access the assets
:returns: twilio.rest.serverless.v1.service.asset.AssetList
:rtype: twilio.rest.serverless.v1.service.asset.AssetList
| python | {
"resource": ""
} |
q29291 | ServiceContext.builds | train | def builds(self):
"""
Access the builds
:returns: twilio.rest.serverless.v1.service.build.BuildList
:rtype: twilio.rest.serverless.v1.service.build.BuildList
| python | {
"resource": ""
} |
q29292 | AuthCallsCredentialListMappingList.create | train | def create(self, credential_list_sid):
"""
Create a new AuthCallsCredentialListMappingInstance
:param unicode credential_list_sid: The SID of the CredentialList resource to map to the SIP domain
:returns: Newly created AuthCallsCredentialListMappingInstance
:rtype: twilio.rest.... | python | {
"resource": ""
} |
q29293 | AuthCallsCredentialListMappingList.get | train | def get(self, sid):
"""
Constructs a AuthCallsCredentialListMappingContext
:param sid: The unique string that identifies the resource
:returns: twilio.rest.api.v2010.account.sip.domain.auth_types.auth_calls_mapping.auth_calls_credential_list_mapping.AuthCallsCredentialListMappingContex... | python | {
"resource": ""
} |
q29294 | AuthCallsCredentialListMappingPage.get_instance | train | def get_instance(self, payload):
"""
Build an instance of AuthCallsCredentialListMappingInstance
:param dict payload: Payload response from the API
:returns: twilio.rest.api.v2010.account.sip.domain.auth_types.auth_calls_mapping.auth_calls_credential_list_mapping.AuthCallsCredentialLis... | python | {
"resource": ""
} |
q29295 | TaskQueueCumulativeStatisticsList.get | train | def get(self):
"""
Constructs a TaskQueueCumulativeStatisticsContext
:returns: twilio.rest.taskrouter.v1.workspace.task_queue.task_queue_cumulative_statistics.TaskQueueCumulativeStatisticsContext
:rtype: twilio.rest.taskrouter.v1.workspace.task_queue.task_queue_cumulative_statistics.Tas... | python | {
"resource": ""
} |
q29296 | TaskQueueCumulativeStatisticsPage.get_instance | train | def get_instance(self, payload):
"""
Build an instance of TaskQueueCumulativeStatisticsInstance
:param dict payload: Payload response from the API
:returns: twilio.rest.taskrouter.v1.workspace.task_queue.task_queue_cumulative_statistics.TaskQueueCumulativeStatisticsInstance
:rt... | python | {
"resource": ""
} |
q29297 | FieldTypeList.get | train | def get(self, sid):
"""
Constructs a FieldTypeContext
:param sid: The unique string that identifies the resource
:returns: twilio.rest.autopilot.v1.assistant.field_type.FieldTypeContext
:rtype: | python | {
"resource": ""
} |
q29298 | FieldTypePage.get_instance | train | def get_instance(self, payload):
"""
Build an instance of FieldTypeInstance
:param dict payload: Payload response from the API
:returns: twilio.rest.autopilot.v1.assistant.field_type.FieldTypeInstance
:rtype: | python | {
"resource": ""
} |
q29299 | FieldTypeContext.field_values | train | def field_values(self):
"""
Access the field_values
:returns: twilio.rest.autopilot.v1.assistant.field_type.field_value.FieldValueList
:rtype: twilio.rest.autopilot.v1.assistant.field_type.field_value.FieldValueList
"""
if self._field_values is None:
self._fi... | python | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.