From 9ded35e2cec55b652b01020cd4b85d23bc745f79 Mon Sep 17 00:00:00 2001 From: Alexander Legotin Date: Sat, 12 Nov 2016 21:57:14 +0300 Subject: [PATCH] readme update --- README.md | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5f3d0049..3c5b9d69 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,8 @@ Note that: there is a simple [Instagram API](https://github.com/a-legotin/Instag #### [Why two separate repos with same mission?](https://github.com/a-legotin/InstagramAPI-Web/wiki/Difference-between-API-Web-and-just-API-repositories) +#### [Wiki](https://github.com/a-legotin/InstagramAPI/wiki/) + ## Cross-platform by design Build with dotnet core. Can be used on Mac, Linux, Windows. @@ -22,10 +24,15 @@ Use library as dll, reference from nuget or clone source code. var api = new InstaApiBuilder() .UseLogger(new SomeLogger()) .UseHttpClient(new SomeHttpClient()) - .SetUserName(SomeUsername) + .SetUser(new UserCredentials(...You user...)) .Build(); ``` ##### Note: every API method has Async implementation as well +#### Login +```c# +bool loggedIn = api.Login(); +``` + #### Get user: ```c# InstaUser user = api.GetUser(); @@ -33,12 +40,17 @@ InstaUser user = api.GetUser(); #### Get all user posts: ```c# -InstaPostList posts = api.GetUserPosts(); +InstaMediaList media = api.GetUserMedia(); ``` #### Get media by its code: ```c# -InstaMedia mediaItem = api.GetMediaByCode(); +InstaMedia mediaItem = api.GetMediaByCode(mediaCode); +``` + +#### Get user timeline feed: +```c# +InstaFeed feed = api.GetUserFeed(); ``` # License