Monday, March 14, 2016

How to use HTTP API


In this post we'll see how to use HTTP API of Localization Web Service.

Presume you have created project, message bundle and some version if no can follow and checkout this post about terms and meanings.

In our case have such structure

PROJECT

  • "My Web-Site" 
MESSAGE BUNDLE
  • "User Portal"
VERSION
  • 0.0.2

Navigate to API Access page. Select message bundle (1) and version (2) , can see all parameters for using HTTP API



Let's try API!  
For more information check documentation   




Use  http method GET
1) To authorize need to set "Access-Token" header
2) Add url parameters: b - bundle key, v - version

All of them you can find in API Access page as described above.

Response looks like this



In response we see 2 my messages for language "en" and country "US".

It works!

No comments:

Post a Comment