Page 1 of 2

Building a Twitter App to Send Tweets

Posted: Sat Jan 07, 2017 8:29 am
by Mark7294305

Hello Support
I am looking for your tutorial "Building a Twitter App to Send Tweets" but all the links to it are broken. Please could you give me the correct link

Mark


Building a Twitter App to Send Tweets

Posted: Sat Jan 07, 2017 2:44 pm
by Illya Stepanov

Hello Mark,

The Twitter has it's own API and they could introduce changes from time to time in their API's. You can use our samples how to add 3rd party API to your app and use it with Twitter.

The video sample: https://youtu.be/F9PRXU1VeaE

Documentation section: https://docs.appery.io/docs/apiintegr...


Building a Twitter App to Send Tweets

Posted: Sun Jan 08, 2017 9:42 am
by Mark7294305

Hello Support
Those links are not very helpful. I followed the tutorial https://devcenter2.appery.io/tutorial.... All is working well. I now wish to add the send tweet feature. When I use the authorization method stated in the above tutorial to send tweets I receive the following error

{
"status": 403,
"uri": "https://api.twitter.com/1.1/statuses/...",
"response": {
"errors": [{
"code": 220,
"message": "Your credentials do not allow access to this resource."
}]
}
}

I came accross a youtube tutorial https://www.youtube.com/watch?v=fhPb6... and the postman for chrome allows the send tweets feature. When I copy the same header parameters from postman and add it to appery authorization header it fails. Can you guide me on how to setup the authorization correctly to post tweets?


Building a Twitter App to Send Tweets

Posted: Sun Jan 08, 2017 11:47 am
by Illya Stepanov

Hello Mark,

The tutorial that you'd mentioned is outdated and we not supporting it any more. You can use main principle that is shown there, but you will need to implement your own custom logic.


Building a Twitter App to Send Tweets

Posted: Sat Jan 14, 2017 12:08 pm
by Mark7294305

Hello Support
Would it be possible for you to email the outdated send tweets doc? I want to read it as a guideline


Building a Twitter App to Send Tweets

Posted: Sat Jan 14, 2017 1:17 pm
by Evgene Karachevtsev

Dear Mark,

Unfortunately looks like it was deleted and we don't have it anymore.


Building a Twitter App to Send Tweets

Posted: Wed Jan 18, 2017 10:46 am
by Illya Stepanov

If you were able to run these services by using Postman, you should configure the API Express service with same setting and it should work.


Building a Twitter App to Send Tweets

Posted: Sat Jan 21, 2017 11:46 am
by Mark7294305

Hello Support
I tried using the API Express method but that also failed. However Max Katz advised me to use the oauth login with google app tutorial as a guideline and I have made some progress. The first step of this process is to request a obtain token from Twitter. I have completed this successfully by

  1. create a login to Twitter button

  2. on button click run the following JS

    var url ="https://twitter.com/oauth/request_tok...=***";

    window.location.href=url;

    The results are displayed below
    Image

    You can see that I successfully obtained the oauth_token and oauth_token_secret tokens. Please could advise me on what code I need to enter to store the oauth_token into a local storage variable?


Building a Twitter App to Send Tweets

Posted: Wed Jan 25, 2017 11:49 am
by Mark7294305

Hello Support
Please can someone help me with this. I have waiting 5 days for a reply


Building a Twitter App to Send Tweets

Posted: Wed Jan 25, 2017 4:26 pm
by Serhii Kulibaba

Hello Mark,

Please see here an example how to parse URL parameters: http://stackoverflow.com/questions/90...

So you can read all parameters with that function, e.g.:
prevar oauth_token = getParameterByName('oauth_token');/pre