Skip to content

araces/instakids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

instakids

ver 1.0 
2014/08/16

Start Over.

User Account & Access

Get a Access Token

Before invoke any authorize require API function,we must have a access token using Signin Method.

authorize SOP:

  • sign in.
  • sign in function response the access token.
  • client keep the access token for authorize require api funcitons.

Signin

URL:

https://xxx.com/api/v1/account/signin

Http Method:

POST

Response Data Type

JSON

Parameters:
Prama Type Range Nullable Desc
email String - NO
password String - NO
Response:

{“success”:true,"errmsg",null,"data":{“token”:“abcd1234”}}


Signup

URL:

https://xxx.com/api/v1/account/signup

Http Method:

POST

Response Data Type

JSON

Parameters:
Prama Type Range Nullable Desc
email String - NO
password String NO
deviceType Int YES
devicetoken String YES
Response:

{“success”:true,"errmsg",null,"data":{“token”:“abcd1234”}}


Forgot Password

When user submit his email,we send a forgot password guide email to THE email address and user should following the instruction to complete that.
URL:

https://xxx.com/api/v1/account/forgotpassword

Http Method:

POST

Response Data Type

JSON

Parameters:
Prama Type Range Nullable Desc
email String - NO
Response:

{“success”:true,"errmsg",null,"data":{}}


Change Password

URL:

https://xxx.com/api/v1/account/forgotpassword

Http Method:

POST

Response Data Type

JSON

Parameters:
Prama Type Range Nullable Desc
token String - NO
email String - NO
Response:

{“success”:true,"errmsg",null,"data":{}}


User Profile

User Profile Object

Object Define:
Prama Type Range Nullable Desc
email String - NO
createDate DateTime - NO
name String - NO
rank unit - NO
credit uint - NO
avator String - YES full path url
Object raw json:

{"name":"ward","email":"[email protected]","createdate","2014-08-08","rank":2,"credit":200,"avator":"https://xxx.com/xx.jpg"}


Get User Profile

URL:

https://xxx.com/api/v1/account/getprofile

Http Method:

GET

Response Data Type

JSON

Parameters:
Prama Type Range Nullable Desc
token String - NO
email String - NO
Response:

{“success”:true,"errmsg",null,"data":{"name":"ward","email":"[email protected]","createdate","2014-08-08","rank":2,"credit":200,"avator":"https://xxx.com/xx.jpg"}}


Update User Profile

URL:

https://xxx.com/api/v1/account/updateprofile

Http Method:

POST

Response Data Type

JSON

Parameters:
Prama Type Range Nullable Desc
token String - NO
name String - YES
email String - NO
Response:

{“success”:true,"errmsg",null,"data":{"name":"ward","email":"[email protected]","createdate","2014-08-08","rank":2,"credit":200,"avator":"https://xxx.com/xx.jpg"}}


Register Mobile Client Push Indentity

URL:

https://xxx.com/api/v1/account/registerDeviceToken

Http Method:

POST

Response Data Type

JSON

Parameters:
Prama Type Range Nullable Desc
token String - NO
devicetoken String - NO
Response:

{“success”:true,"errmsg",null,"data":{}}


Shop

We only have ONE shop for now

### Shop Object

### Get Shop

Package

Package Object

Object Define:
Prama Type Range Nullable Desc
shopId String - NO
packageId String - NO
packageName String - NO
createDate DateTime - NO
price Money - NO
pages uint - NO
desc String - NO
images String Array - NO aaa,bbb,ccc
packagetype uint - YES
Object raw json:

{"name":"ward","email":"[email protected]","createdate","2014-08-08","rank":2,"credit":200,"avator":"https://xxx.com/xx.jpg"}


GetPackages

URL:

https://xxx.com/api/v1/account/getPackages

Http Method:

GET

Response Data Type

JSON

Parameters:
Prama Type Range Nullable Desc
category String - YES
Response:

{“success”:true,"errmsg",null,"data":{"packages":{}}}


ShopCart

not avaliable in first release.

Order

Order Object

Order Object Define:
Prama Type Range Nullable Desc
orderId String - NO
shopId String - NO
userId String - NO
createDate DateTime - NO
status unit - NO
amount money - NO
qty uint - NO
orderProducts JSON Array - NO
ordertype uint - YES
OrderProduct Object Define:
Prama Type Range Nullable Desc
orderId String - NO
createDate DateTime - NO
status unit - NO
orderProductId String - NO
qty uint - NO
packageId string - NO
packageName string - NO
price Money - NO
Object raw json:

{"name":"ward","email":"[email protected]","createdate","2014-08-08","rank":2,"credit":200,"avator":"https://xxx.com/xx.jpg"}


Get User OrderList

URL:

https://xxx.com/api/v1/account/getOrderList

Http Method:

GET

Response Data Type

JSON

Parameters:
Prama Type Range Nullable Desc
token String - NO
userId String - NO
startDate String - YES eg:2014-08-18
endDate String - YES eg:2014-08-20
status unit - YES
Response:

{“success”:true,"errmsg",null,"data":{"orders":{}}}


Get Order

URL:

https://xxx.com/api/v1/account/getOrder

Http Method:

GET

Response Data Type

JSON

Parameters:
Prama Type Range Nullable Desc
token String - NO
userId String - NO
orderId String - NO
Response:

{“success”:true,"errmsg",null,"data":{}}


Cancel Order

URL:

https://xxx.com/api/v1/account/cancelOrder

Http Method:

POST

Response Data Type

JSON

Parameters:
Prama Type Range Nullable Desc
token String - NO
userId String - NO
orderId String - NO
Response:

{“success”:true,"errmsg",null,"data":{}}


Confirm Shiped(Finnish)

URL:

https://xxx.com/api/v1/account/finishOrder

Http Method:

POST

Response Data Type

JSON

Parameters:
Prama Type Range Nullable Desc
token String - NO
userId String - NO
orderId String - NO
Response:

{“success”:true,"errmsg",null,"data":{}}


Pay Order

Open a browser with the URL value in response json object for 3rd part online pay service step.
URL:

https://xxx.com/api/v1/account/payOrder

Http Method:

POST

Response Data Type

JSON

Parameters:
Prama Type Range Nullable Desc
token String - NO
userId String - NO
orderId String - NO
Response:

{“success”:true,"errmsg",null,"data":{""payment":{"url":"https://m.alipay.com/xxx"}}}


Refond Order

URL:

https://xxx.com/api/v1/account/refondOrder

Http Method:

POST

Response Data Type

JSON

Parameters:
Prama Type Range Nullable Desc
token String - NO
userId String - NO
orderId String - NO
Response:

{“success”:true,"errmsg",null,"data":{}}


UploadPhoto

URL:

https://xxx.com/api/v1/account/uploadPhoto

Http Method:

POST

Response Data Type

JSON

Parameters:
Prama Type Range Nullable Desc
token String - NO
email String - NO
localfilename String - NO
file Stream - NO
orderid String - NO
Response:

{“success”:true,"errmsg",null,"data":{"url":"https://xxx.com/abc.jpg","contentlength":2000}}

PhotoBook

PhotoBook Object

PhotoBook Object Define:
Prama Type Range Nullable Desc
photoBookId String - NO
shopId String - NO
authorId String - NO
createDate DateTime - NO
status uint - NO
name String - NO
packageId String - NO
minPages uint - NO
maxPages uint - NO
size String - NO
category String - NO
style String - NO
coverImageUrl String - NO
previewVideoUrl String - NO
desc String - NO
PageStyle Object Define:
Prama Type Range Nullable Desc
pageStyleId String - NO
createDate DateTime - NO
status uint - NO
photoBookId String - NO
photoCount uint - NO
imageUrl string - NO
backendImageUrl string - NO
width uint - NO
height uint - NO
Object raw json:

{"name":"ward","email":"[email protected]","createdate","2014-08-08","rank":2,"credit":200,"avator":"https://xxx.com/xx.jpg"}


UserProject

UserProject Object

PhotoBook Object Define:
Prama Type Range Nullable Desc
userProjectId String - NO
photoBookId String - NO
shopId String - NO
userId String - NO
createDate DateTime - NO
lastUpdateDate DateTime - NO
status uint - NO
name String - NO
packageId String - NO
photoBookId String - NO
photoCount uint - NO
Page Object Define:
Prama Type Range Nullable Desc
pageStyleId String - NO
pageId String - NO
createDate DateTime - NO
status uint - NO
photoCountRequire uint - NO
photoCount uint - NO
PagePhoto Object Define:
Prama Type Range Nullable Desc
photoId String - NO
userId String - NO
userProjectId String - NO
pageId String - NO
createDate DateTime - NO
status uint - NO
top uint - NO
left uint - NO
zoom single - NO
rotationAngle single - NO
Object raw json:

{"name":"ward","email":"[email protected]","createdate","2014-08-08","rank":2,"credit":200,"avator":"https://xxx.com/xx.jpg"}


About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published