You can ping service as follows:
Use this method to ensure that the network connection to the Notification Server is alive and that your service credentials are valid.
URL |
/nnapi/1.0/ping Note:
This is a cURL command. For more information, see Testing Service using cURL. |
Method |
GET |
200 Ok
The Notification Server is running and credentials are valid.
400 Bad Request
Unknown version. Only version 1.0 is currently supported. Any other version (or no version) returns 400 Bad Request.
401 Unauthorized
Authorisation failed. Incorrect service credentials.
TCP/TLS connection for the HTTP requests may not be persistent. Make sure that your service uses a persistent TCP/TLS connection for the HTTP requests.
Forbidden service. Service access to Nokia Notifications API is forbidden.
403 Method Not Allowed
Wrong method used. Only GET method is allowed.
Request GET URL
https://alpha.one.ovi.com/nnapi/1.0/ping
Response DATA
HTTP/1.1 200 OK Content-Length:2 Content-Type:text/plain;charset=ISO-8859-1 OK