Skip to content

Commit

Permalink
Merge pull request #5 from cdw1p/master-dev
Browse files Browse the repository at this point in the history
update README.md
  • Loading branch information
M1n007 committed Oct 1, 2020
2 parents a0844bd + 9dfc6d1 commit f4e2f5e
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,11 @@ console.log(resultAllFollowing)
* [.deleteMediaByShortCode(shortCode)](#deleteMediaByShortCode)
* [.saveImageByShortCode(shortCode)](#saveImageByShortCode)
* [.unsaveImageByShortCode(shortCode)](#saveImageByShortCode)
* [.commentToMediaByMediaId({shortCode, commentText})](#commentToMediaByMediaId)
* [.commentToMediaByShortCode({shortCode, commentText})](#commentToMediaByShortCode)
* [.replyCommentByShortCode({shortCode, commentText, commentId})](#replyCommentByShortCode)
* [.getEmbedMediaByShortCode(shortCode)](#getEmbedMediaByShortCode)
* [.findPeopleByUserId(userid)](#findPeopleByUserId)
* [.findPeopleByUsername(username)](#findPeopleByUsername)
* [.addPost(image, caption)](#addPost)
* [.addStory(image)](#addStory)
Expand Down Expand Up @@ -289,6 +291,21 @@ console.log(resultAllFollowing)
> save media by shortcode
- `shortCode`: A `String`

### commentToMediaByMediaId(params)
```js
await InstaClient.useExistingCookie()
const payload = {
mediaId: 100000,
commentText: 'Your Text Comment'
}
const data = await InstaClient.commentToMediaByMediaId(payload);
console.log(data)
```
> add comment to a media by shortcode
- `params`
- `mediaId`: A `Number`
- `commentText`: A `String`

### commentToMediaByShortCode(params)
```js
await InstaClient.useExistingCookie()
Expand Down Expand Up @@ -330,13 +347,22 @@ console.log(resultAllFollowing)
> get embed media by shortCode
- `shortCode`: A `String`

### findPeopleByUsername(username)
### findPeopleByUserId(userid)
```js
await InstaClient.useExistingCookie()
const data = await InstaClient.findPeopleByUserId(00000);
console.log(data)
```
> find people by userid
- `userid`: A `Number`

### findPeopleByUsername(userid)
```js
await InstaClient.useExistingCookie()
const data = await InstaClient.findPeopleByUsername('menjadi');
console.log(data)
```
> find people bu username
> find people by username
- `username`: A `String`

### addPost(image, caption)
Expand Down

0 comments on commit f4e2f5e

Please sign in to comment.