Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 551 Bytes

File metadata and controls

22 lines (17 loc) · 551 Bytes

InstagramBestTimePost

Finds out best time to post on Instagram

To manually call the API

  1. Start the service locally.
  2. Then Go to ipython & type below code:
import  requests, json

headers = { 'content-type':'application/json' }
url = 'http://127.0.0.1:8000/find/best-time-to-post/'
data = { "id": "deepak365" }
params = { 'content': json.dumps(data) }

response = requests.get(url, headers=headers, params=params)

if response.status_code == 200:
    print json.dumps(response.json(), indent=4, sort_keys=True)
else:
    print response