Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/EionRobb/skype4pidgin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEion Robb <eion@robbmob.com>2016-12-14 05:45:59 +0300
committerEion Robb <eion@robbmob.com>2016-12-14 05:45:59 +0300
commit0de79fac6aa79dea4c808eb2c65b1e8de6bafc58 (patch)
tree08ae45aa90ab28220d1ac4c17334c245535e75d4
parent5150a129b1711d7a6c88b4ebb9ac363de1480d89 (diff)
Add a few notes about the v2 contacts api
-rw-r--r--skypeweb/skypeweb_contacts.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/skypeweb/skypeweb_contacts.c b/skypeweb/skypeweb_contacts.c
index 0a38ddd..ccf5258 100644
--- a/skypeweb/skypeweb_contacts.c
+++ b/skypeweb/skypeweb_contacts.c
@@ -1273,6 +1273,8 @@ skypeweb_get_friend_list(SkypeWebAccount *sa)
return;
}
+ //https://contacts.skype.com/contacts/v2/users/SELF?delta=&reason=default
+
url = g_strdup_printf("/contacts/v1/users/%s/contacts", purple_url_encode(sa->username));
skypeweb_post_or_get(sa, SKYPEWEB_METHOD_GET | SKYPEWEB_METHOD_SSL, SKYPEWEB_NEW_CONTACTS_HOST, url, NULL, skypeweb_get_friend_list_cb, NULL, TRUE);
@@ -1328,16 +1330,6 @@ skypeweb_got_authrequests(SkypeWebAccount *sa, JsonNode *node, gpointer user_dat
guint index, length;
time_t latest_timestamp = 0;
- /* {
- "invite_list": [{
- "mri": "2:daniel.soderlund@lindab.com",
- "invites": [{
- "time": "2016-10-26T07:14:52.653Z"
- }],
- "displayname": "Söderlund, Daniel"
- }]
-} */
-
requests = json_node_get_object(node);
invite_list = json_object_get_array_member(requests, "invite_list");
length = json_array_get_length(invite_list);
@@ -1381,6 +1373,9 @@ skypeweb_add_buddy_with_invite(PurpleConnection *pc, PurpleBuddy *buddy, PurpleG
GSList *users_to_fetch;
gchar *buddy_name;
+ //https://contacts.skype.com/contacts/v2/users/bigbrownchunx/contacts
+ // POST {"mri":"2:eionrobb@dequis.onmicrosoft.com","greeting":"Hi, eionrobb@dequis.onmicrosoft.com, I'd like to add you as a contact."}
+
buddy_name = g_strdup(purple_buddy_get_name(buddy));
url = g_strdup_printf("/users/self/contacts/auth-request/%s", purple_url_encode(buddy_name));
postdata = g_strdup_printf("greeting=%s", message ? purple_url_encode(message) : "");