Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I upload a jpg and tweet that? #47

Open
jimmyeao opened this issue Apr 14, 2021 · 4 comments
Open

How do I upload a jpg and tweet that? #47

jimmyeao opened this issue Apr 14, 2021 · 4 comments
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@jimmyeao
Copy link

$file = "D:\OneDrive\Desktop\images\New_folder\Abedour.jpg"
$length = (get-item $file).Length
Send-TwitterMedia_Upload -command INIT -total_bytes $length -media_type image/jpeg 

this returns the media.id, but I cant see the syntax for Send-TwitterStatuses_UpdateWithMedia to actually upload and post?

@mkellerman
Copy link
Owner

Hi Jimmy, thanks for your comment.

Unfortunately, I didn't test all the functions. I created a wrapper that generates the functions automatically based on the API documentation. It's not great but it works most of the time.

If you find the solution to your issue, please let me know! I'll update the code.

@mkellerman mkellerman added bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed labels Apr 15, 2021
@jimmyeao
Copy link
Author

Hi, I've spent 3 solid days trying to figure it out, my coding skills don't appear to be up to scratch just yet :)
Hopefully someone more experienced can step in and help out

@mkellerman
Copy link
Owner

I'll see if I can find some time in the coming week. But no promises. Sorry.

@jimmyeao
Copy link
Author

jimmyeao commented Apr 17, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants