Sample API workflow.

Step 1)

curl -k -X GET "https://mysampleapp.com/api/info?id=3727&apiKey=48254c477c&user=johndoe@mysampleapp.com" \
-H "Content-Type: application/json" \
-H "Authorization: Basic b311ZWdhYAcGguaWJtLcsxb55TpteXBhc3Nbaa3Jk"

The authorization header contains a Base64 encoded of the intranetID+Password
johndoe@mysampleapp.com:mypassword which is equal to b311ZWdhYAcGguaWJtLcsxb55TpteXBhc3Nbaa3Jk
Once hes authenticated, you will get a JSON response like this

  "status": "SUCCESS",
  "data": {
    "title": "Hello world",
    "author": "Arman Ortega"
  "token": "E4QYBAGWLJEDBH43RK5DQ======"

Then we can use the generated token(200 chars) and add it to your Authorization header
Step 2)

curl -k -X GET "https://mysampleapp.com/api/like?apiKey=48254c477c&id=3727&action=like&user=johndoe@mysampleapp.com" \
-H "Content-Type: application/json" \
-H "Authorization: Token token=E4QYBAGWLJEDBH43RK5DQ======"

If the like action is success, youll have the response like this:

{"status":"SUCCESS","message":"Successfully updated record."}