twitter #2
@ -15,7 +15,7 @@ def get_twitter_campaigns():
|
|||||||
if not decoded_token:
|
if not decoded_token:
|
||||||
return "Not authorised!", 401
|
return "Not authorised!", 401
|
||||||
|
|
||||||
user_id = decoded_token['uid']
|
user_id = decoded_token['sub']
|
||||||
|
|
||||||
twitter_campaigns = TwitterCampaign.query.filter_by(user_id=user_id)
|
twitter_campaigns = TwitterCampaign.query.filter_by(user_id=user_id)
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ def add_twitter_account():
|
|||||||
if not decoded_token:
|
if not decoded_token:
|
||||||
return "Not authorised!", 401
|
return "Not authorised!", 401
|
||||||
|
|
||||||
user_id = decoded_token['uid']
|
user_id = decoded_token['sub']
|
||||||
|
|
||||||
content_type = request.headers.get('Content-Type')
|
content_type = request.headers.get('Content-Type')
|
||||||
if (content_type == 'application/json'):
|
if (content_type == 'application/json'):
|
||||||
|
@ -11,7 +11,7 @@ def get_twitter_accounts():
|
|||||||
if not decoded_token:
|
if not decoded_token:
|
||||||
return "Not authorised!", 401
|
return "Not authorised!", 401
|
||||||
|
|
||||||
user_id = decoded_token['uid']
|
user_id = decoded_token['sub']
|
||||||
|
|
||||||
twitter_accounts = TwitterAccount.query.filter_by(user_id=user_id)
|
twitter_accounts = TwitterAccount.query.filter_by(user_id=user_id)
|
||||||
|
|
||||||
@ -33,7 +33,7 @@ def add_twitter_account():
|
|||||||
if not decoded_token:
|
if not decoded_token:
|
||||||
return "Not authorised!", 401
|
return "Not authorised!", 401
|
||||||
|
|
||||||
user_id = decoded_token['uid']
|
user_id = decoded_token['sub']
|
||||||
|
|
||||||
content_type = request.headers.get('Content-Type')
|
content_type = request.headers.get('Content-Type')
|
||||||
if (content_type == 'application/json'):
|
if (content_type == 'application/json'):
|
||||||
|
Loading…
Reference in New Issue
Block a user