Request sequence

= Request sequence =

Typical working session with Geo2Tag service contains next steps:

1. Authorization using Login request:

Request curl -d "{\"login\":\"Mark\",\"password\":\"test\"}" http://example.com/service/login

Valid response { "auth_token" : "19cdd62aa70614280a92cb6e82acf848", "errno" : 0 }

2. Service selection using SetDb request:

Request curl -d "{\"auth_token\":\"19cdd62aa70614280a92cb6e82acf848\",\"db_name\":\"test\"}" http://example.com/service/setDb

Valid response { "errno" : 0 }

3. General requests executing (for example FilterCirle, subscribe, unsubscribe) with auth_token gotten at first step.

4. Sessiion closing using quitSession request:

Request curl -d "{\"auth_token\":\"19cdd62aa70614280a92cb6e82acf848\"}" http://example.com/service/quitSession

Valid response { "errno" : 0 }