test.py 303 B

123456789101112131415
  1. import rtm
  2. apiKey = "c1a983bba360889c5089d5ccf1a94e4a"
  3. secret = "67b5855d779f0d37"
  4. token = "ad9ce7ad7956bbf1a02ae6a8963085025a800472"
  5. ms = rtm.RTM(apiKey, secret, token)
  6. authURL = ms.getAuthURL()
  7. print authURL
  8. raw_input('Press enter once you gave access')
  9. token = ms.getToken()
  10. print "Token", token