summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/requests/status.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/SkypeWeb/src/requests/status.h')
-rw-r--r--protocols/SkypeWeb/src/requests/status.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/SkypeWeb/src/requests/status.h b/protocols/SkypeWeb/src/requests/status.h
index db29fcf503..c66cbd8ec2 100644
--- a/protocols/SkypeWeb/src/requests/status.h
+++ b/protocols/SkypeWeb/src/requests/status.h
@@ -21,12 +21,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
class SetStatusRequest : public HttpRequest
{
public:
- SetStatusRequest(const char *status, LoginInfo &li) :
- HttpRequest(REQUEST_PUT, FORMAT, "%s/v1/users/ME/presenceDocs/messagingService", li.endpoint.szServer)
+ SetStatusRequest(const char *status, CSkypeProto *ppro) :
+ HttpRequest(REQUEST_PUT, FORMAT, "%s/v1/users/ME/presenceDocs/messagingService", ppro->m_szServer)
{
Headers
<< CHAR_VALUE("Accept", "application/json, text/javascript")
- << FORMAT_VALUE("RegistrationToken", "registrationToken=%s", li.endpoint.szToken)
+ << FORMAT_VALUE("RegistrationToken", "registrationToken=%s", ppro->m_szToken)
<< CHAR_VALUE("Content-Type", "application/json; charset=UTF-8");
JSONNode node(JSON_NODE);
@@ -39,12 +39,12 @@ public:
class SetStatusMsgRequest : public HttpRequest
{
public:
- SetStatusMsgRequest(const char *status, LoginInfo &li) :
+ SetStatusMsgRequest(const char *status, CSkypeProto *ppro) :
HttpRequest(REQUEST_POST, "api.skype.com/users/self/profile/partial")
{
Headers
<< CHAR_VALUE("Accept", "application/json, text/javascript")
- << CHAR_VALUE("X-Skypetoken", li.api.szToken)
+ << CHAR_VALUE("X-Skypetoken", ppro->m_szApiToken)
<< CHAR_VALUE("Content-Type", "application/json; charset=UTF-8");
JSONNode node, payload;