summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/requests/endpoint.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-07-12 19:20:45 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-07-12 19:20:45 +0300
commitc311534fbf724850cbd8555a9e57f67b3096d7a0 (patch)
tree73105ae67eebae560f162a90a194016e4d06565c /protocols/SkypeWeb/src/requests/endpoint.h
parent75ac9efb6ed49795e21796419fcf8759c0d859dd (diff)
SkypeWeb:
- fixes #2002 (Skype caches wrong server data); - unused structure removed; - version bump
Diffstat (limited to 'protocols/SkypeWeb/src/requests/endpoint.h')
-rw-r--r--protocols/SkypeWeb/src/requests/endpoint.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/protocols/SkypeWeb/src/requests/endpoint.h b/protocols/SkypeWeb/src/requests/endpoint.h
index 70cc922fcd..fe9c3c6a3e 100644
--- a/protocols/SkypeWeb/src/requests/endpoint.h
+++ b/protocols/SkypeWeb/src/requests/endpoint.h
@@ -21,13 +21,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
class CreateEndpointRequest : public HttpRequest
{
public:
- CreateEndpointRequest(LoginInfo &li) :
- HttpRequest(REQUEST_POST, FORMAT, "%s/v1/users/ME/endpoints", li.endpoint.szServer)
+ CreateEndpointRequest(CSkypeProto *ppro) :
+ HttpRequest(REQUEST_POST, FORMAT, "%s/v1/users/ME/endpoints", ppro->m_szServer)
{
Headers
<< CHAR_VALUE("Accept", "application/json, text/javascript")
<< CHAR_VALUE("Content-Type", "application/json; charset=UTF-8")
- << FORMAT_VALUE("Authentication", "skypetoken=%s", li.api.szToken);
+ << FORMAT_VALUE("Authentication", "skypetoken=%s", ppro->m_szApiToken);
Body << VALUE("{}");
}
@@ -36,12 +36,12 @@ public:
class DeleteEndpointRequest : public HttpRequest
{
public:
- DeleteEndpointRequest(LoginInfo &li) :
- HttpRequest(REQUEST_DELETE, FORMAT, "%s/v1/users/ME/endpoints/%s", li.endpoint.szServer, mir_urlEncode(li.endpoint.szId).c_str())
+ DeleteEndpointRequest(CSkypeProto *ppro) :
+ HttpRequest(REQUEST_DELETE, FORMAT, "%s/v1/users/ME/endpoints/%s", ppro->m_szServer, mir_urlEncode(ppro->m_szId).c_str())
{
Headers
<< CHAR_VALUE("Accept", "application/json, text/javascript")
- << FORMAT_VALUE("RegistrationToken", "registrationToken=%s", li.endpoint.szToken);
+ << FORMAT_VALUE("RegistrationToken", "registrationToken=%s", ppro->m_szToken);
}
};