Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zahra Rajabi
tweepy
Commits
ee8dcb6f
Commit
ee8dcb6f
authored
Jun 18, 2015
by
Jacob Ferrero
Browse files
allow include_email param
See
https://dev.twitter.com/rest/reference/get/account/verify_credentials
parent
78d2883a
Changes
1
Hide whitespace changes
Inline
Side-by-side
tweepy/api.py
View file @
ee8dcb6f
...
...
@@ -618,7 +618,7 @@ class API(object):
def
verify_credentials
(
self
,
**
kargs
):
""" :reference: https://dev.twitter.com/rest/reference/get/account/verify_credentials
:allowed_param:'include_entities', 'skip_status'
:allowed_param:'include_entities', 'skip_status'
, 'include_email'
"""
try
:
return
bind_api
(
...
...
@@ -626,7 +626,7 @@ class API(object):
path
=
'/account/verify_credentials.json'
,
payload_type
=
'user'
,
require_auth
=
True
,
allowed_param
=
[
'include_entities'
,
'skip_status'
],
allowed_param
=
[
'include_entities'
,
'skip_status'
,
'include_email'
],
)(
**
kargs
)
except
TweepError
as
e
:
if
e
.
response
and
e
.
response
.
status
==
401
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment