Cannot read the properties of uploadMedia using client.v2.uploadMedia() #517
Unanswered
satyamy846
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
//I am getting this error
twClient.v1.uploadMedia('./image.jpg'),
^
TypeError: Cannot read properties of undefined (reading 'uploadMedia')
I tried logging my twClient so I got this output
twclient === {
_currentUser: null,
_currentUserV2: null,
_requestMaker: {
rateLimits: {},
clientSettings: {},
consumerToken: 'mytoken',
consumerSecret: 'mysecret',
accessToken: 'access_token',
accessSecret: 'access_secret',
_oauth: { nonceLength: 32, consumerKeys: [Object] }
}
}
It doesn't have these uploadMedia methods that's why it is not able to access it
Can anyone help me out of this
Beta Was this translation helpful? Give feedback.
All reactions