Commit 7c7398307ad94e0f6b7fc41076698e0763d4c1b2

Authored by steve ago
Exists in master

Merge branch 'master' of http://gitlab.pikicast.com/Noah/dsfacebook

Showing 3 changed files Side-by-side Diff

insight/token.py View file @ 7c73983
1 1 #!/usr/bin/env python
2 2 # -*- coding: utf-8 -*-
3 3 class Token() :
  4 +
  5 + token_str = "EAAUTLd5JgaoBAOR8w4ZADD4iPVXs1rb5agOX9W4gfrPLZB0BDFFw1T9UZAo6UVg2BTDIAAdOxJ8d7vjOLgceT01VdcswVbZAtZAE87pjeRHZCZBWoVOmlBn93RqZCZAIyBHYDmlegcTZA2IUaNEPKDQQcOuwRQmdLnbKsZD"
4 6 prefix = "&access_token="
5 7 token = ""
6 8 token_sub = ""
7   - def __init__(self,input):
8   - self.setToken(input)
  9 + def __init__(self):
  10 + self.setToken(self.token_str)
9 11  
10 12 def setToken(self,input):
11 13 self.token = input
... ... @@ -12,8 +12,8 @@
12 12  
13 13 if __name__=='__main__':
14 14  
15   - token_str = "EAAUTLd5JgaoBAJMeeMXqcdExQ1egUHeBaIgVBCilmiH4K9RNyUt7gSgVZCZAtszWCLEaZCDQpxewhICtFjNRICFPWAqUygshcSsdEZBUeZAyUJkON7bfQ2NFFI5AqifNahzjFT83GkWZCZCZBXO3050XSjFf9HSR0iAZD"
16   - token = Token(token_str)
  15 + #token_str = "EAAUTLd5JgaoBAJMeeMXqcdExQ1egUHeBaIgVBCilmiH4K9RNyUt7gSgVZCZAtszWCLEaZCDQpxewhICtFjNRICFPWAqUygshcSsdEZBUeZAyUJkON7bfQ2NFFI5AqifNahzjFT83GkWZCZCZBXO3050XSjFf9HSR0iAZD"
  16 + token = Token()
17 17  
18 18 contexts = Context(token)
19 19 contexts.setContextsFeedAndTimestemp(3600 * 24 * 10 * 3)
... ... @@ -10,8 +10,8 @@
10 10 if __name__=='__main__':
11 11  
12 12 #token_str = "CAAUTLd5JgaoBABnBUUgOjgaUkuviOZCC1otVIJYwYapCRTZBU8ZAbTOd1uo1SBiqHr1eBhVdzoYDoBjPzqO0ImpxGZAXtlXeVtp4r2muUDt3O53NLYqFgrJqKAowcU7fWMsmMTZAAtKT8MXeF4Lb0rHQ2I1gHmbr6nlJWBHzk6dsNPmYHguMp"
13   - token_str = "EAAUTLd5JgaoBAHB3khi0FIRJ2N0bGf9RiWBAtkpxhczZAhIuUmqM76zc1ZAp1s2bOsw6sraE6qOj0WGbWQDU0cu5Bs7idUukS9lGCbt3dwsCiG4pZAssNJm4yMVIjdB5roxGbtenNlP9lsmHzlJtx4gsAcdNcUZD"
14   - token = Token(token_str)
  13 + #token_str = "EAAUTLd5JgaoBAJMeeMXqcdExQ1egUHeBaIgVBCilmiH4K9RNyUt7gSgVZCZAtszWCLEaZCDQpxewhICtFjNRICFPWAqUygshcSsdEZBUeZAyUJkON7bfQ2NFFI5AqifNahzjFT83GkWZCZCZBXO3050XSjFf9HSR0iAZD"
  14 + token = Token()
15 15  
16 16 context = Context(token)
17 17 page_list = context.getPageList()