Skip to content
Alexander Legotin edited this page Dec 5, 2016 · 7 revisions

Frequently Asked Questions: F.A.Q.

Installation

Add sources to project

Reference dll

Reference from nuget

Constructor

Create API instance, can be used as singletone in your application

var api = new InstaApiBuilder()
                .UseLogger(new SomeLogger())
                .UseHttpClient(new SomeHttpClient())
                .SetUser(new UserCredentials(...You user...))
                .Build();

Set up proxy

 var httpHndler = new HttpClientHandler();
 httpHndler.Proxy = new MyProxy();
 var result = new InstaApiBuilder()
                .UseHttpClientHandler(httpHndler)
                .Build();

Where MyProxy - some implementation of IWebProxy, WebProxy, for example.

Clone this wiki locally