Skip to content

Instantly share code, notes, and snippets.

@aratakokubun
Last active August 29, 2015 14:07
Show Gist options
  • Save aratakokubun/1248a2f46c9ccd7abd79 to your computer and use it in GitHub Desktop.
Save aratakokubun/1248a2f46c9ccd7abd79 to your computer and use it in GitHub Desktop.
client = Client(url_name = self.user_name, password = self.user_pass)
token = client.token # post等はここで取得したtokenを使用
users = Users()
user_items = users.user_items(url_name=self.user_name, params={'page':1, 'per_page':100})
In [42]: time_str = '2014-10-11 23:34:14 +0900'
In [43]: time = datetime.strptime(time_str[:-6], '%Y-%m-%d %H:%M:%S')
In [44]: (datetime.now() - time).days
Out[44]: 7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment