Error (401) Unauthorized


#1

Hi,
I am getting error as The remote server returned an error: (401) Unauthorized at method - WebRequest()

Inside Class: TwitterOAuth.vb

This TwitterVB application using VB.Net code

    Public Const REQUEST_TOKEN As String = "http://twitter.com/oauth/request_token"
    Public Const AUTHORIZE As String = "http://twitter.com/oauth/authorize"
    Public Const ACCESS_TOKEN As String = "http://twitter.com/oauth/access_token"

Trying save Tweet as CSV.

Organization: FilesAnywhere.com
I tried using https instead of http with above urls.

Please let me know in case of more info required.
Kindly let us know solution ASAP, as this issue is at live environment.

Regards,
Kiran


#2

The correct urls for OAuth token negotiations are at “https://api.twitter.com/oauth/*” (the api subdomain and over https).

But you may be getting a 401 for a variety of reasons, like sluggish system clock, or other issues with your API keys. Can you make requests with your API keys in another environment.

By the way, please keep in mind this item of our developer terms of service:

"Exporting Twitter Content to a datastore as a service or other cloud based service, however, is not permitted."