Skip to content

Instantly share code, notes, and snippets.

@andreagrandi
Created September 18, 2013 11:57
Show Gist options
  • Save andreagrandi/6608134 to your computer and use it in GitHub Desktop.
Save andreagrandi/6608134 to your computer and use it in GitHub Desktop.
FBX test
import requests
import json
api_base_url = 'http://localhost:8000/api/1/'
glow_api_token = '2d2e1f3e3d40bca24477929c1e77f8f2419492c4'
account_id = '520367d182711919fe02dd52'
auth_header = {'Authorization': 'Token ' + glow_api_token}
pixel_data = {'pixel_data': {'short_name': 'Segment Pixel Test 001 - Andrea', 'account_id': account_id}}
r = requests.post(api_base_url + 'fbx/test/', data = pixel_data, headers = auth_header)
print r.status_code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment