-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* myget pre-release packages * standart 2.0 + package updates * Remove fallback version * Send direct message implementation (#74) * Send direct message * GetMediaCommentsAsync failed when caption is null * send message improvements * #75 get friendship status * travis ci, dotnet 2.0 * Removed framework version from travis * netstandard2.0 * Improved user info part of API * Access modifiers and general code refactoring * readme update * Adjusted explore feed (no pagination) * Clean up * Code inspection corrections * Added a better logging mechanism to reach more details. (#78) * Added a better loging mechanism with more details. * Linked to previous changes. * Update appveyor.yml * Adjusted logger * More corrections to logger * GetTagFeedAsync»InstaMedia»InstaUserShort should be InstaUser (#80) From log: api is proving whole fields of InstaUser * Explore feed add pagination * Add user story feed * Get story feed corrected * Save session data implemented * Change state saving to return stream * Added GetUserMediaAsync by user pk method. (#82) * GetTagFeedAsync»InstaMedia»InstaUserShort should be InstaUser From log: api is proving whole fields of InstaUser * Make InstaApi instantiable. * get user media by pk. * Update InstaApiBuilder.cs * Revert "Added GetUserMediaAsync by user pk method. (#82)" This reverts commit d138c93. * Added recent and ranked recipients * Added massaging demo sample * Add story converter * Improved logging and exception handling * Update README.md * Added docs, app key * #83. #88, #94 * Update README.md * Refactoring of converters, DTO classes set public, send message to unspecific thread * Update README.md * Update README.md * #98, #99, fixes for converters * #100, comparision of username corrected * 2FA, Upload photos as album, Collection support (#102) * 2FA Support Added Two-Factor Authentication support. * Added "Upload multiple photos in a new album" Added "Upload multiple photos in a new album" * Added "Get Collection from collection ID" Added "Get Collection from collection ID" * Added "Get Collections" Added "Get Collections" * Added "Create new collection" Added "Create new collection" * Added "Delete collection" Added "Delete collection" * Fix Fix * Little fix on summary * Handling and creating share link (#104) Added: Get media ID from a share link Added: Get share link from a media ID * Fix https://github.com/a-legotin/InstaSharper/issues/97 (#107) * Fix https://github.com/a-legotin/InstaSharper/issues/97 * remove unused class * Update README.md (#108) Features heading didn't have space. * Add edit collection * Clean up * Added Block/Unblock User (#110) Added the functionality to block and unblock a user by the given userId. * #113 added support of link, media types in direct inbox message * 117, fixed * Added location search * Added location feed * Move media related stuff to separate processor * Stuff moved to processors * Pagination added for followers/followings * Moved some more stuff to the separate processors * move remaining parts to processors * Improvements to location feed * Pagination improvements #106 * Cleanup + feed corrections * Samples project improved * Code cleanup, bump version, ci script
- Loading branch information
Showing
205 changed files
with
7,745 additions
and
1,627 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System; | ||
using System.Threading.Tasks; | ||
using InstaSharper.API; | ||
|
||
namespace InstaSharper.Examples.Samples | ||
{ | ||
internal class CollectionSample : IDemoSample | ||
{ | ||
private readonly IInstaApi _instaApi; | ||
|
||
public CollectionSample(IInstaApi instaApi) | ||
{ | ||
_instaApi = instaApi; | ||
} | ||
|
||
public async Task DoShow() | ||
{ | ||
// get all collections of current user | ||
var collections = await _instaApi.GetCollectionsAsync(); | ||
Console.WriteLine($"Loaded {collections.Value.Items.Count} collections for current user"); | ||
foreach (var instaCollection in collections.Value.Items) | ||
{ | ||
Console.WriteLine($"Collection: name={instaCollection.CollectionName}, id={instaCollection.CollectionId}"); | ||
} | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
using System; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using InstaSharper.API; | ||
using InstaSharper.Classes; | ||
|
||
namespace InstaSharper.Examples.Samples | ||
{ | ||
internal class LocationSample : IDemoSample | ||
{ | ||
private readonly IInstaApi _instaApi; | ||
|
||
public LocationSample(IInstaApi instaApi) | ||
{ | ||
_instaApi = instaApi; | ||
} | ||
|
||
public async Task DoShow() | ||
{ | ||
// search for related locations near location with latitude = 55.753923, logitude = 37.620940 | ||
// additionaly you can specify search query or just empty string | ||
var result = await _instaApi.SearchLocation(55.753923, 37.620940, "square"); | ||
Console.WriteLine($"Loaded {result.Value.Count} locations"); | ||
var firstLocation = result.Value?.FirstOrDefault(); | ||
if(firstLocation == null) | ||
return; | ||
Console.WriteLine($"Loading feed for location: name={firstLocation.Name}; id={firstLocation.ExternalId}."); | ||
|
||
var locationFeed = | ||
await _instaApi.GetLocationFeed(long.Parse(firstLocation.ExternalId), PaginationParameters.MaxPagesToLoad(5)); | ||
|
||
Console.WriteLine(locationFeed.Succeeded | ||
? $"Loaded {locationFeed.Value.Medias?.Count} medias for location, total location medias: {locationFeed.Value.MediaCount}" | ||
: $"Unable to load location '{firstLocation.Name}' feed"); | ||
} | ||
} | ||
} |
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
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
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
Oops, something went wrong.