Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
a-legotin committed Nov 13, 2016
2 parents 3d109a0 + 9ded35e commit cb8aaea
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -22,23 +24,33 @@ 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();
```

#### 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
Expand Down

0 comments on commit cb8aaea

Please sign in to comment.