Building a Twitter App to Send Tweets

This forum contains topics that were moved from Get Satisfaction
Mark7294305
Posts: 0
Joined: Fri Dec 26, 2014 2:10 am

Building a Twitter App to Send Tweets

Post 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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Building a Twitter App to Send Tweets

Post 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...

Mark7294305
Posts: 0
Joined: Fri Dec 26, 2014 2:10 am

Building a Twitter App to Send Tweets

Post 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?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Building a Twitter App to Send Tweets

Post 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.

Mark7294305
Posts: 0
Joined: Fri Dec 26, 2014 2:10 am

Building a Twitter App to Send Tweets

Post 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

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Building a Twitter App to Send Tweets

Post by Evgene Karachevtsev »

Dear Mark,

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Building a Twitter App to Send Tweets

Post 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.

Mark7294305
Posts: 0
Joined: Fri Dec 26, 2014 2:10 am

Building a Twitter App to Send Tweets

Post 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?

Mark7294305
Posts: 0
Joined: Fri Dec 26, 2014 2:10 am

Building a Twitter App to Send Tweets

Post by Mark7294305 »

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

Serhii Kulibaba
Posts: 147
Joined: Tue Aug 27, 2013 1:47 pm

Building a Twitter App to Send Tweets

Post 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

Post Reply