Skip to content

Commit

Permalink
Update Stories.cs (ramtinak#325)
Browse files Browse the repository at this point in the history
* Update Stories.cs

A small mistake to choose MediaProcessor instead of StoryProcessor

* Update Stories.cs
  • Loading branch information
amastaneh authored Apr 5, 2020
1 parent 6c345cb commit 8f406a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions samples/Examples/Samples/Stories.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ public async void UploadVideo()
Video = new InstaVideo(@"c:\video1.mp4", 0, 0),
VideoThumbnail = new InstaImage(@"c:\video thumbnail 1.jpg", 0, 0)
};
var result = await InstaApi.MediaProcessor.UploadVideoAsync(video, "ramtinak");
var result = await InstaApi.StoryProcessor.UploadStoryVideoAsync(video, "ramtinak");
Console.WriteLine(result.Succeeded
? $"Story created: {result.Value.Pk}"
? $"Story created: {result.Value.Media.Pk}"
: $"Unable to upload video story: {result.Info.Message}");
}

Expand Down Expand Up @@ -175,4 +175,4 @@ public async void ShareMediaAsStory()
: $"Unable to share media as story: {result.Info.Message}");
}
}
}
}

0 comments on commit 8f406a4

Please sign in to comment.