Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

Media sync #197

Merged
merged 2 commits into from
Jan 18, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion media.go
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,11 @@ func (media *FeedMedia) instagram() *Instagram {
return media.inst
}

// SetInstagram set instagram
func (media *FeedMedia) SetInstagram(inst *Instagram) {
media.inst = inst
}

// SetID sets media ID
// this value can be int64 or string
func (media *FeedMedia) SetID(id interface{}) {
Expand All @@ -701,7 +706,7 @@ func (media *FeedMedia) Sync() error {
&reqOptions{
Endpoint: fmt.Sprintf(urlMediaInfo, id),
Query: generateSignature(data),
IsPost: true,
IsPost: false,
},
)
if err != nil {
Expand Down