Developer Community Gateway Services Examples


This page contains few examples of the API calls for Syniverse Developer Community in cURL.

To see all available APIs please go to the resources page.


Example API Calls

API Example Call
Login

response to this contains the user-token
curl -X POST 
-H "Content-Type: application/json" 
-d '{
"username":"",
"password":"",
"sellerAppId":1
}'
"https://api.syniverse.com/saop-rest-data/v1/login"
		
applications
 curl -X GET 
-H "user-token: [USER TOKEN]" 
-H "Authorization: Bearer [YOUR ACCESS TOKEN]" 
"https://api.syniverse.com/gateway-services/v1/applications"
		
users
 curl -X GET 
-H "Authorization: Bearer [YOUR ACCESS TOKEN]" 
-H "user-token: [USER TOKEN]" 
"https://api.syniverse.com/gateway-services/v1/users"
		
pricing

Response contains all prices related to the Service Offering
 curl -X GET 
-H "Authorization: Bearer [YOUR ACCESS TOKEN]" 
-H "user-token: [USER TOKEN]" 
"https://api.syniverse.com/gateway-services/v1/pricing/{SERVICE OFFERING ID}"
		
service-offerings

Response contains a list of all Service Offerings application has access to
 curl -X GET 
-H "Authorization: Bearer [YOUR ACCESS TOKEN]" 
-H "user-token: [USER TOKEN]"
"https://api.syniverse.com/gateway-services/v1/service-offerings"
		
transaction details

Response contains detailed transactions done with the application
curl -X GET 
-H "Authorization: Bearer [YOUR ACCESS TOKEN]" 
-H "user-token: [USER TOKEN]" 
"https://api.syniverse.com/gateway-services/v1/reports/app/api/transdetails?accountId={ACCOUNT ID}&apiId={API ID}&appId={APPLICATION ID}&date={YYYY-MM-DD}"