0% found this document useful (0 votes)
185 views2 pages

JSON Formats

The document outlines a preferred JSON format for user registration and authentication with a service. It describes 4 cases: 1) new user registration with email verification, 2) verifying the email and getting account details, 3) switching an existing account, and 4) regular login with UUID and email. Each case provides a sample request and response format for communicating with the service using HTTP requests and JSON responses.

Uploaded by

charlesbabuk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
185 views2 pages

JSON Formats

The document outlines a preferred JSON format for user registration and authentication with a service. It describes 4 cases: 1) new user registration with email verification, 2) verifying the email and getting account details, 3) switching an existing account, and 4) regular login with UUID and email. Each case provides a sample request and response format for communicating with the service using HTTP requests and JSON responses.

Uploaded by

charlesbabuk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Prefered JSON format

1. New user first time registration:


Request :
http://***?action="getVerificationCode"&emailId="+emailId+"
Request Example:
http://10.10.12.61:8080/JsonToAndroid/JsonReturn?
action=getVerificationCode&[email protected]
Response
[{"verificationCode":"1234","responseCode":"randNumSendSuccess"}]

2. Verifiying the email id after successfully verifying the code :


case 1 : If the action response = newUserSaved
Request :
http://***?
action="getUuidUrl"&emailId="+emailId+"&platform="androi/ios/windows"
Request Example:
http://10.10.12.61:8080/JsonToAndroid/JsonReturn?
action=getUuidUrl&[email protected]&os=mswindows
Response :
[{"uuid":"cbX4#dPn%! 001x34","url":"http://www.cinesoftmedia.com",
"responseCode":"newUserSaved"
}]

case 2 : If the action response = userExist


Request :
http://***?
action="getUuidUrl"&emailId="+emailId+"&platform="androi/ios/windows"

Request Example:
http://10.10.12.61:8080/JsonToAndroid/JsonReturn?
action=getuuidurl&[email protected]&os=mswindows
Response :
[{"responseCode":"userExist"}]

3.

Switch account request:

Request :
http://***?
action="switchAccount"&emailId="+emailId+"&os="androi/ios/windows"
Request Example:
http://10.10.12.61:8080/JsonToAndroid/JsonReturn?
action=switchAccount&[email protected]&os=mswindows
Response :
[{"uuid":"cbX4#dPn%!001x34","url":"http://www.cinesoftmedia.com",
"responseCode":"accountSwitchSuccess"
}]

4.

Regular Login

Request :
http://*******?action="regularLogin"&uuid="+uuid+&emailId="+emailId+
Request Example:
http://10.10.12.61:8080/JsonToAndroid/JsonReturn?
action=regularloginSuccess&uuid= cbX4#dPn%!001x34
Response:
[{"url":"http://www.cinesoftmedia.com","responseCode":"validRegularLogin"}]

You might also like