Url | /oauth/token |
---|---|
Method | POST |
Header Name | Value |
---|---|
Accept | application/json |
Content-Type | application/json |
Name | Type | Required | Description |
---|---|---|---|
grant_type | string | Yes | in this case you should pass the grant_type by type "password" |
client_id | string | Yes | first you need to create an application in your dashboard then you should pass your client_id here |
client_secret | string | Yes | at first you need to create an application in your dashboard then you should pass your client_secret here |
username | string | Yes | pass your email |
password | string | Yes | pass your password |
Key | Value |
---|---|
token_type | Bearer |
expires_in | seconds |
access_token | your access token |
refresh_token | you can use this token for refreshing token after expiration token time |
Key | Value |
---|---|
ok | false |
message | description about error |
status_code | 401 |
Url | /oauth/token |
---|---|
Method | POST |
Header Name | Value |
---|---|
Accept | application/json |
Content-Type | application/json |
Name | Type | Required | Description |
---|---|---|---|
grant_type | string | Yes | in this case you should pass the grant_type by type "refresh_token" |
refresh_token | string | Yes | pass your refresh_token |
client_id | string | Yes | pass your client_id here |
client_secret | string | Yes | pass your client_secret here |
Key | Value |
---|---|
token_type | Bearer |
expires_in | seconds |
access_token | your access token |
refresh_token | you can use this token for refreshing token after expiration token time |
Key | Value |
---|---|
ok | false |
message | description about error |
status_code | 401 |
Url | /auth/revoke |
---|---|
Method | GET |
Header Name | Value |
---|---|
Accept | application/json |
Authorization | Bearer "ACCESS_TOKEN" |
Key | Value |
---|---|
ok | true |
data | [] |
status_code | 200 |
Key | Value |
---|---|
ok | false |
message | description about error |
status_code | 401 |
Url | /api/v1/services/bodyMeasurement |
---|---|
Method | POST |
Header Name | Value |
---|---|
Accept | application/json |
Authorization | Bearer "ACCESS_TOKEN" |
Name | Type | Required | Description |
---|---|---|---|
present_height | string or integer | Yes | pass height |
img_full_view_body | string (base64) | Yes | pass image in base64 format |
img_side_view_body | string (base64) | Yes | pass image in base64 format |
Key | Value |
---|---|
ok | true |
data | result |
status_code | 200 |
Key | Value |
---|---|
ok | false |
message | description about error |
Url | /api/v1/services/autoTagging |
---|---|
Method | POST |
Header Name | Value |
---|---|
Accept | application/json |
Authorization | Bearer "ACCESS_TOKEN" |
Name | Type | Required | Description |
---|---|---|---|
image | string (base64) | Yes | pass image in base64 format |
Key | Value |
---|---|
ok | true |
data | result |
status_code | 200 |
Key | Value |
---|---|
ok | false |
message | description about error |
status_code | error code |
Url | /api/v1/services/garmentMeasurement |
---|---|
Method | POST |
Header Name | Value |
---|---|
Accept | application/json |
Authorization | Bearer "ACCESS_TOKEN" |
Name | Type | Required | Description |
---|---|---|---|
Image | string (base64) | Yes | pass image in base64 format |
Key | Value |
---|---|
ok | true |
data | result |
status_code | 200 |
Key | Value |
---|---|
ok | false |
message | description about error |