You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to upload media (small images) to Twitter, but the "media_upload" call has been producing an error: (code: 220, message: "Your credentials do not allow access to this resource.)
This is the code I'm using to convert the image to base64:
encodeImageFileAsURL(e) {
let input = event.target;
if (input.files && input.files[0]) {
let file = input.files[0];
let reader = new FileReader()
reader.onloadend = function() {
window.store.state.selectedImage = reader.result.substr(reader.result.indexOf(',') + 1);
}
reader.readAsDataURL(file);
}
}
And this is the code I've been using for the call:
I've been trying to upload media (small images) to Twitter, but the "media_upload" call has been producing an error: (code: 220, message: "Your credentials do not allow access to this resource.)
This is the code I'm using to convert the image to base64:
And this is the code I've been using for the call:
Any suggestions on how to approach this?
Sidenote: all my other calls to the twitter api are working.
Thanks for your help :-)
The text was updated successfully, but these errors were encountered: