Skip to content

Instantly share code, notes, and snippets.

@vymarkov
Created August 5, 2014 10:07
Show Gist options
  • Save vymarkov/cedcd44e9f1381452c4c to your computer and use it in GitHub Desktop.
Save vymarkov/cedcd44e9f1381452c4c to your computer and use it in GitHub Desktop.
using System;
using System.Net;
using System.IO;
using System.Collections.Generic;
namespace qwerty
{
class MainClass
{
public static void Main (string[] args)
{
Console.WriteLine ("Hello World!");
WebClient client = new WebClient ();
client.Proxy = new WebProxy (new Uri("https://payments.delta.internal:8123/"), true);
// Add a user agent header in case the
// requested URI contains a query.
client.Headers.Add ("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)");
var uri = new Uri ("https://api.listenit.org/2.0/user:1/stream/records?stream/records_slice=0:50&stream/records_format=list&record_fields=track,comment,comments&record/comments_format=length&track_fields=@all&access_token=test");
//var uri = new Uri ("http://vk.com/v.y.markov");
var res = client.DownloadString (uri);
Console.WriteLine (res);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment