ThirdParty

Catalog


GET Sign in

Request path:

https://gateway.aiursoft.com/ThirdParty/SignInTry

Request example:

https://gateway.aiursoft.com/ThirdParty/SignIn?ProviderName=yourProviderName&Code=yourCode&State=yourState

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/ThirdParty/CreateAccountAndBind

Request content type:

application/x-www-form-urlencoded

Form content example:

ProviderName=yourProviderName&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/ThirdParty/BindAccountTry

Request example:

https://gateway.aiursoft.com/ThirdParty/BindAccount?ProviderName=yourProviderName&Code=yourCode

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!"
}