ThirdParty

Catalog


GET Sign in

Request path:

https://gateway.aiursoft.com/Third-party/sign-in/{providerName}

Request example:

https://gateway.aiursoft.com/third-party/sign-in/{yourprovidername}?Code=yourCode&State=yourState

Try

Request arguments:

Name Required Type
ProviderName Not required Text
Code Not required Text
State Not required Text

Possible Response:

{
  "code": -1,
  "message": "Some error."
}

Possible Response:

{
  "items": [
    "Some item is invalid!"
  ],
  "code": -10,
  "message": "Your input contains several errors!"
}

POST Create account and bind

Request path:

https://gateway.aiursoft.com/Third-party/create-account-and-bind/{providerName}

Request example:

https://gateway.aiursoft.com/third-party/create-account-and-bind/{yourprovidername}?AppImageUrl=yourAppImageUrl&CanFindAnAccountWithEmail=false&Provider=yourProvider&PreferedLanguage=yourPreferedLanguage&UserDetail=yourUserDetail&AppId=yourAppId&RedirectUri=yourRedirectUri&State=yourState

Request content type:

application/x-www-form-urlencoded

Form content example:

AppImageUrl=yourAppImageUrl&CanFindAnAccountWithEmail=false&Provider=yourProvider&PreferedLanguage=yourPreferedLanguage&UserDetail=yourUserDetail&AppId=yourAppId&RedirectUri=yourRedirectUri&State=yourState 

Request form:

Name Required Type
ProviderName Not required Text
AppImageUrl Not required Text
CanFindAnAccountWithEmail Required Boolean
Provider Not required A magic type!
PreferedLanguage Not required Text
UserDetail Not required A magic type!
AppId Required Text
RedirectUri Required Text
State Not required Text

Possible Response:

{
  "code": -1,
  "message": "Some error."
}

Possible Response:

{
  "items": [
    "Some item is invalid!"
  ],
  "code": -10,
  "message": "Your input contains several errors!"
}

GET Bind account

Request path:

https://gateway.aiursoft.com/Third-party/bind-account/{providerName}

Request example:

https://gateway.aiursoft.com/third-party/bind-account/{yourprovidername}?Code=yourCode

Try

Request arguments:

Name Required Type
ProviderName Not required Text
Code Not required Text

Possible Response:

{
  "code": -1,
  "message": "Some error."
}

Possible Response:

{
  "items": [
    "Some item is invalid!"
  ],
  "code": -10,
  "message": "Your input contains several errors!"
}