Created
August 5, 2014 10:07
-
-
Save vymarkov/cedcd44e9f1381452c4c 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
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