Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
adw0rd committed Apr 13, 2021
1 parent 31cf12e commit 7a990f1
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -487,26 +487,27 @@ Get statistics by medias. Common arguments:
* `time_frame` - Time frame for media publishing date: "ONE_WEEK", "ONE_MONTH", "THREE_MONTHS", "SIX_MONTHS", "ONE_YEAR", "TWO_YEARS".
* `data_ordering` - Data ordering in instagram response: "REACH_COUNT", "LIKE_COUNT", "FOLLOW", "SHARE_COUNT", "BIO_LINK_CLICK", "COMMENT_COUNT", "IMPRESSION_COUNT", "PROFILE_VIEW", "VIDEO_VIEW_COUNT", "SAVE_COUNT".

| Method | Return | Description |
| -------------------------------------------------------------------------------------------------- | ------------------ | ------------------------------------------------------------- |
| insights_media_feed_all(post_type: str = "ALL", time_frame: str = "TWO_YEARS", data_ordering: str = "REACH_COUNT", count: int = 0, sleep: int = 2) | list | Return medias with insights |
| insights_account() | dict | Get statistics by your account |
| insights_media(media_pk: int) | dict | Get statistics by your media |
| Method | Return | Description
| -------------------------------------------------------------------------------------------------- | ------------------ | -------------------------------
| insights_media_feed_all(post_type: str = "ALL", time_frame: str = "TWO_YEARS", data_ordering: str = "REACH_COUNT", count: int = 0, sleep: int = 2) | list | Return medias with insights
| insights_account() | dict | Get statistics by your account
| insights_media(media_pk: int) | dict | Get statistics by your media

#### Direct

| Method | Return | Description |
| ------------------------------------------------------------------------- | ------------------- | ---------------------------------- |
| direct_threads(amount: int = 20) | List[DirectThread] | Get all Threads |
| direct_thread(thread_id: int, amount: int = 20) | DirectThread | Get Thread with Messages |
| direct_messages(thread_id: int, amount: int = 20) | List[DirectMessage] | Get only Messages in Thread |
| direct_answer(thread_id: int, text: str) | DirectMessage | Add Message to exist Thread |
| direct_send(text: str, users: List[int] = [], threads: List[int] = []) | DirectMessage | Send Message to Users or Threads |
| Method | Return | Description
| ------------------------------------------------------------------------- | ------------------- | ----------------------------------
| direct_threads(amount: int = 20) | List[DirectThread] | Get all Threads
| direct_thread(thread_id: int, amount: int = 20) | DirectThread | Get Thread with Messages
| direct_messages(thread_id: int, amount: int = 20) | List[DirectMessage] | Get only Messages in Thread
| direct_answer(thread_id: int, text: str) | DirectMessage | Add Message to exist Thread
| direct_send(text: str, users: List[int] = [], threads: List[int] = []) | DirectMessage | Send Message to Users or Threads
| direct_search(query: str) | DirectShortThread | Search threads (for example by username)

#### Location

| Method | Return | Description |
| ---------------------------------------------------------- | -------------- | ----------------------------------------------------------------------- |
| Method | Return | Description
| ---------------------------------------------------------- | -------------- | -----------------------------------------------------------------------
| location_search(lat: float, lng: float) | List[Location] | Search Location by GEO coordinates
| location_complete(location: Location) | Location | Complete blank fields
| location_build(location: Location) | String | Serialized JSON
Expand Down

0 comments on commit 7a990f1

Please sign in to comment.