Created
October 13, 2014 20:48
-
-
Save flashsites/4d1520169b419c4432f7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@delmo99 this is how i get the updates. Assuming you are speaking of updated targets | |
public static List<string> GetProspects() | |
{ | |
List<string> ids = new List<string>(); | |
string response; | |
try | |
{ | |
using (WebClient wc = new WebClient()) | |
{ | |
wc.Headers[HttpRequestHeader.ContentType] = "application/json; charset=utf-8"; | |
wc.Headers[HttpRequestHeader.UserAgent] = "Tinder Android Version 3.3.1"; | |
wc.Headers.Add("X-Auth-Token", "[AUTH ID]"); | |
wc.Headers.Add("os-version", "19"); | |
wc.Headers.Add("app-version", "762"); | |
wc.Headers.Add("platform", "android"); | |
response = wc.UploadString("https://api.gotinder.com/user/recs", "{\"limit\":40}"); | |
} | |
} | |
catch | |
{ | |
return ids; | |
} | |
if (!string.IsNullOrWhiteSpace(response)) | |
{ | |
dynamic dataObj = JObject.Parse(response); | |
if (dataObj.status == "200") | |
{ | |
foreach (dynamic result in dataObj.results) | |
{ | |
string str = result._id; | |
ids.Add(str); | |
} | |
} | |
} | |
return ids; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment