Skip to main content

users_incomings

Creates, updates, deletes, gets or lists a users_incomings resource.

Overview​

Nameusers_incomings
TypeResource
Idovh.sms.users_incomings

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idinteger
creation_datetimestring (date-time) (wire: creationDatetime)
creditsnumber
messagestring
senderstring
tagstring

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectid, login, service_nameGet a received SMS. Returns the received SMS: sender, message, reception date, credits used and tag. The tag groups SMS for filtering and export.
listselectlogin, service_namesender, tag, x_pagination_modeList received SMS. Returns the identifiers of the received SMS. Get a received SMS for its sender, message, date and credits used.
deletedeleteid, login, service_nameDelete 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.

NameDatatypeDescription
api_hoststringThe 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"}})
idintegerId of the object
loginstringThe sms user login
service_namestringThe internal name of your SMS offer (wire: serviceName)
senderstringFilter the value of sender property (=)
tagstringFilter the value of tag property (=)
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

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
;

DELETE examples​

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
;