Skip to content

Instantly share code, notes, and snippets.

@flashsites
Created October 13, 2014 20:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flashsites/4d1520169b419c4432f7 to your computer and use it in GitHub Desktop.
Save flashsites/4d1520169b419c4432f7 to your computer and use it in GitHub Desktop.
@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