User | SmsHosting.it
icon_qa
INTRODUZIONE API REST

Usi l'app Postman?
 

USER

User informations

Returns the profile information and SmsHosting.it account balance.

URI

GET https://api.smshosting.it/rest/api/user

Request

ParameterMandatory Description
No parameter required

Response

HTTP Status Code

CodeDescription
200 ok
401 Bad credentials
405 HTTP method not allowed
500 Generic error

User informations

PropertyDescription
name Name
lastname Lastname
username Username dell'account
email Email address
businessname Company name if business account
address Address
city City
postcode Postal code
province Province
country Country
birthdate Birth Date
phone Phone
msisdn User mobile phone number
sender Default sender
taxcode Tax Code
vatnumber VAT number
registrationDate Account registration date formatted as yyyy-MM-dd'T'HH:mm:ssZ
expirationDate

Account expiration date formatted as yyyy-MM-dd'T'HH:mm:ssZ

Nota: Il tuo profilo su SmsHosting.it scade dopo un anno dal tuo ultimo ordine.

credit Account balance
italysms Number of text messages that can be sent to Italy with your remaining credit

 Example:

curl --user AUTH_KEY:AUTH_SECRET  https://api.smshosting.it/rest/api/user
{
  "name": "Mario",
  "lastname": "Rossi",
  "username": "mrossi",
  "email": "mario.rossi@fake.it",
  "address": "via Italia 1",
  "city": "Roma",
  "postcode": "00144",
  "province": "RM",
  "country": "IT",
  "birthdate": "01.01.1970",
  "phone": "06000000",
  "msisdn": "393480000000",
  "sender": "mrossi",
  "taxcode": "MRXXXXXXXXXX",
  "registrationDate": 200607191808+0200,
  "expirationDate": 201408211148+0200,
  "credit": 15.693,
  "italysms": 166
}