users_incomings
Creates, updates, deletes, gets or lists a users_incomings resource.
Overview​
| Name | users_incomings |
| Type | Resource |
| Id | ovh.sms.users_incomings |
Fields​
The following fields are returned by SELECT queries:
- get
- list
successful operation
| Name | Datatype | Description |
|---|---|---|
id | integer | |
creation_datetime | string (date-time) | (wire: creationDatetime) |
credits | number | |
message | string | |
sender | string | |
tag | string |
Sms history of sms incoming received
| Name | Datatype | Description |
|---|---|---|
id | integer | |
creation_datetime | string (date-time) | (wire: creationDatetime) |
credits | number | |
message | string | |
sender | string | |
tag | string |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | id, login, service_name | Get a received SMS. Returns the received SMS: sender, message, reception date, credits used and tag. The tag groups SMS for filtering and export. | |
list | select | login, service_name | sender, tag, x_pagination_mode | List received SMS. Returns the identifiers of the received SMS. Get a received SMS for its sender, message, date and credits used. |
delete | delete | id, login, service_name | Delete a received SMS. Deletes the received SMS from the history. It no longer appears in the list of received SMS. |
Parameters​
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
api_host | string | The OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}}) |
id | integer | Id of the object |
login | string | The sms user login |
service_name | string | The internal name of your SMS offer (wire: serviceName) |
sender | string | Filter the value of sender property (=) |
tag | string | Filter the value of tag property (=) |
x_pagination_mode | string | Sent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode) |
SELECT examples​
- get
- list
Get a received SMS. Returns the received SMS: sender, message, reception date, credits used and tag. The tag groups SMS for filtering and export.
SELECT
id,
creation_datetime,
credits,
message,
sender,
tag
FROM ovh.sms.users_incomings
WHERE id = '{{ id }}' -- required
AND login = '{{ login }}' -- required
AND service_name = '{{ service_name }}' -- required
;
List received SMS. Returns the identifiers of the received SMS. Get a received SMS for its sender, message, date and credits used.
SELECT
id,
creation_datetime,
credits,
message,
sender,
tag
FROM ovh.sms.users_incomings
WHERE login = '{{ login }}' -- required
AND service_name = '{{ service_name }}' -- required
AND sender = '{{ sender }}'
AND tag = '{{ tag }}'
AND x_pagination_mode = '{{ x_pagination_mode }}'
;
DELETE examples​
- delete
Delete a received SMS. Deletes the received SMS from the history. It no longer appears in the list of received SMS.
DELETE FROM ovh.sms.users_incomings
WHERE id = '{{ id }}' --required
AND login = '{{ login }}' --required
AND service_name = '{{ service_name }}' --required
;