0

我想在 Github 和 C# 上使用 InstaSharp 或 InstagramApiSharp 之类的 Api 将图像上传到我的 Instagram 帐户。但不知道该怎么做。

UploadPhotoAsync()但不能指定它应该上传到哪个集合。

任何人有任何解决方案?

4

1 回答 1

0

您只需传递 InstaImage 和 String 作为标题。

InstaImage iamge = new InstaImage
            {
                URI = new Uri(Path.GetFullPath("image.jpg"), UriKind.Absolute).LocalPath,
                Width = 720,
                Height = 889,
            };


        IResult<InstaMedia> postResult = await _instaApi.UploadPhotoAsync(iamge,"caption");
于 2020-05-19T20:41:03.207 回答