Attraverso questo webservice è possibile modificare la password di accesso ad Overplace di un utente di cui si possiede il token. Il webservice, costituito dall’unico metodo userChangePassword, ritornerà come risultato un nuovo user_token.
Url webservice
http://www.overplace.com/wsdl/change_password
Metodo
userTokenCheck
Parametri
- ws_auth_token: Client token ottenuto dal Client Login Webservice (string).
- idapp: Application id delle vetrina Overplace sulla quale il client vuole operare (es. CJ50)(string).
- user_token: Token utente ottenuto in precedenza tramite login o registrazione(string)
- password: Nuova password per l’utente
- response type : formato della risposta, i parametri accettati sono “xml” o “json”(string).
Esempio Request lato Client
1 2 3 4 5 6 7 8 9 10 11 12 |
<?xml version="1.0" encoding="ISO-8859-1"?> <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Body> <ns9847:userChangePassword xmlns:ns9847="http://tempuri.org"> <ws_auth_token xsi:type="xsd:string">aJph8Qw8fL3NTUIrOhex0FRgoiRaaBW/9XASZuro1lA=</ws_auth_token> <idapp xsi:type="xsd:string">CJ50</idapp> <user_token xsi:type="xsd:string">QBtDlOvxw0dkhLrGpjf2QhrPRZI9AY5j2USJ+Q4jva6JbRY5M7a7k+9SsyxKXJo4KU3ZqoKRUTcbLey9BJdVZVqdKVSfXVUmOYGoPA9+7kJszZd1CuPr3zVAquJDDLnVewM7K2hY8ouTLlP3iEoOal1LsO1A3R3swVNPZ3mwmMDK1ePKGUyffF25UsQ/eLwfe+o2Af8itAiQTFQCjOpbgA==</user_token> <password xsi:type="xsd:string">nuova_password</password> <response_type xsi:type="xsd:string">json</response_type> </ns9847:userChangePassword> </SOAP-ENV:Body> </SOAP-ENV:Envelope> |
Esempio Response lato Client
1 2 3 |
<response> <user_token>QBtDlOvxw0dkhLrGpjf2QhrPRZI9AY5j2USJ+Q4jva6JbRY5M7a7k+9SsyxKXJo4KU3ZqoKRUTcbLey9BJdVZVqdKVSfXVUmOYGoPA9+7kJszZd1CuPr3zVAquJDDLnVewM7K2hY8ouTLlP3iEoOal1LsO1A3R3swVNPZ3mwmMDK1ePKGUyffF25UsQ\/eLwfe+o2Af8itAiQTFQCjOpbgA==</user_token> </response> |
Response in formato Json
1 |
{"user_token":"QBtDlOvxw0dkhLrGpjf2QhrPRZI9AY5j2USJ+Q4jva6JbRY5M7a7k+9SsyxKXJo4KU3ZqoKRUTcbLey9BJdVZVqdKVSfXVUmOYGoPA9+7kJszZd1CuPr3zVAquJDDLnVewM7K2hY8ouTLlP3iEoOal1LsO1A3R3swVNPZ3mwmMDK1ePKGUyffF25UsQ\/eLwfe+o2Af8itAiQTFQCjOpbgA=="} |
Comments are closed.