REST API, regarding 403 error code?

前端 未结 4 1290
感情败类
感情败类 2020-12-19 09:16

We are posting Tweets to multiple accounts from same IP address using software application. And in response from twitter , we are getting 403 error code, API used by us is R

相关标签:
4条回答
  • 2020-12-19 09:42

    if you are using twitter4j.properties, you can also set it there. http.useSSL=true

    0 讨论(0)
  • 2020-12-19 09:50

    api.twitter.com now requires SSL/TLS for all connections as of today(14th jan2014)

    ConfigurationBuilder cb = new ConfigurationBuilder();
    
    cb.setUseSSL(true);
    

    Put these above lines of code where you are making a call to twitter.

    It works...

    0 讨论(0)
  • 2020-12-19 10:04

    If it is a recent error (since Jan 14th) you can try to add this:

    ConfigurationBuilder cb = new ConfigurationBuilder();
    cb.setUseSSL(true); // <======== set use SSL
    

    Twitter added a requirement on January 14th to use SSL/HTTPS when using their API.

    The above code fixed it for me.

    0 讨论(0)
  • 2020-12-19 10:04

    If this is the exception that is being thrown and if you read the error it says:

    This code is used when requests are being denied due to update limits.

    0 讨论(0)
提交回复
热议问题