0

Twitter made their callback_url explicit this month. This now creates a problem since my callback url has space chars as (+) in the parameters I pass. It produces a 403 error.

qs = 'param1=value&param2=a+b'
auth = twitter.get_authentication_tokens(callback_url='http://%s/twittercallback?%s' % (host, qs))

The problem occurs for that plus character (+) which is a space in the form that's being retrieved; I tried substituting "%20" but that created the same issue.

It thinks this is a separate callback url and not approved.

user1961
  • 1,270
  • 2
  • 17
  • 27

1 Answers1

0

Shouldn't 'http://%s/twittercallback?%s' be supplied with two objects to format instead of just one, qs?

blhsing
  • 91,368
  • 6
  • 71
  • 106