-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEndSession.cs
33 lines (27 loc) · 945 Bytes
/
EndSession.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace triton1
{
static class EndSession
{
// api.icq.net/aim/endSession?f=json&aimsid=151.0770045335.**********%3A672880971&invalidateToken=1
public static int end_session()
{
string EndSessionUrl;
// string resp;
EndSessionUrl = "https://api.icq.net/aim/endSession?f=json&aimsid=" + http_sender.EscapeSymbol(Fetch.aimsid) + "&invalidateToken=1";
http_sender.GetAsync(EndSessionUrl);
return get_response_code(http_sender.response);
}
private static int get_response_code(string response)
{
int Status;
dynamic json = Newtonsoft.Json.Linq.JObject.Parse(response);
Status = (int)json["response"]["statusCode"];
return Status;
}
}
}