Skip to content

Instantly share code, notes, and snippets.

@SavvyGuard
Last active August 29, 2015 14:15
Show Gist options
  • Save SavvyGuard/b918d442ca29c39a7d6a to your computer and use it in GitHub Desktop.
Save SavvyGuard/b918d442ca29c39a7d6a to your computer and use it in GitHub Desktop.

Revisions

  1. SavvyGuard revised this gist Feb 12, 2015. 1 changed file with 4 additions and 3 deletions.
    7 changes: 4 additions & 3 deletions createplacement.sh
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,6 @@
    curl http://0.0.0.0:3005/placements/api/1.0/create?apikey=pyroturtle -X POST -d '{"impressions": 6000, "geo_region": ["US-CA"], "device__browser": ["Ch
    rome"], "device_os": ["Windows 7", "Windows 8", "Windows 8.1"], "campaign": "54be9b9cdcfad93307ef8b99", "bid": 10}' -H "Content-Type: application/json"
    curl http://0.0.0.0:3005/placements/api/1.0/create?apikey=pyroturtle -X POST -d '{"impressions": 6000, "geo_region": ["US-CA"], "device__browser": ["Chrome"], "device_os": ["Windows 7", "Windows 8", "Windows 8.1"], "campaign": "54be9b9cdcfad93307ef8b99", "bid": 10}' -H "Content-Type: application/json"
    curl http://0.0.0.0:3005/placements/api/1.1/54be9b9cdcfad93307ef8b99/pacing?apikey=pyroturtle -X POST
    curl http://0.0.0.0:3005/placements/api/1.1/54be9b9cdcfad93307ef8b99/pacing?apikey=pyroturtle -X PUT -d '{"thursday":{"cap":3000,"0":{"hour_cap":600,"minutes_active":[[0,60]]},"1":{"hour_cap":600,"minutes_active":[[0,60]]},"2":{"hour_cap":600,"minutes_active":[[0,60]]},"3":{"hour_cap":600,"minutes_active":[[0,60]]},"4":{"hour_cap":600,"minutes_active":[[0,60]]},"5":{"hour_cap":600,"minutes_active":[[0,60]]},"6":{"hour_cap":600,"minutes_active":[[0,60]]},"7":{"hour_cap":600,"minutes_active":[[0,60]]},"8":{"hour_cap":600,"minutes_active":[[0,60]]}}}' -H "Content-Type: application/json"
    curl http://0.0.0.0:3005/placements/api/1.1/54be9b9cdcfad93307ef8b99/pacing/push?apikey=pyroturtle -X PUT -H "Content-Type: application/json"
    curl http://0.0.0.0:3005/placements/api/1.1/54be9b9cdcfad93307ef8b99/pacing/push?apikey=pyroturtle -X PUT -H "Content-Type: application/json"
    curl http://0.0.0.0:3005/placements/api/1.0/54be9b9cdcfad93307ef8b99?apikey=pyroturtle -X PUT -d '{"start_date": "2015-01-01", "end_date": "2016-01-01"}' -H "Content-Type: application/json"
    curl http://0.0.0.0:3005/placements/api/1.0/54be9b9cdcfad93307ef8b99/toggle?apikey=pyroturtle -X PUT
  2. SavvyGuard created this gist Feb 12, 2015.
    5 changes: 5 additions & 0 deletions createplacement.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    curl http://0.0.0.0:3005/placements/api/1.0/create?apikey=pyroturtle -X POST -d '{"impressions": 6000, "geo_region": ["US-CA"], "device__browser": ["Ch
    rome"], "device_os": ["Windows 7", "Windows 8", "Windows 8.1"], "campaign": "54be9b9cdcfad93307ef8b99", "bid": 10}' -H "Content-Type: application/json"
    curl http://0.0.0.0:3005/placements/api/1.1/54be9b9cdcfad93307ef8b99/pacing?apikey=pyroturtle -X POST
    curl http://0.0.0.0:3005/placements/api/1.1/54be9b9cdcfad93307ef8b99/pacing?apikey=pyroturtle -X PUT -d '{"thursday":{"cap":3000,"0":{"hour_cap":600,"minutes_active":[[0,60]]},"1":{"hour_cap":600,"minutes_active":[[0,60]]},"2":{"hour_cap":600,"minutes_active":[[0,60]]},"3":{"hour_cap":600,"minutes_active":[[0,60]]},"4":{"hour_cap":600,"minutes_active":[[0,60]]},"5":{"hour_cap":600,"minutes_active":[[0,60]]},"6":{"hour_cap":600,"minutes_active":[[0,60]]},"7":{"hour_cap":600,"minutes_active":[[0,60]]},"8":{"hour_cap":600,"minutes_active":[[0,60]]}}}' -H "Content-Type: application/json"
    curl http://0.0.0.0:3005/placements/api/1.1/54be9b9cdcfad93307ef8b99/pacing/push?apikey=pyroturtle -X PUT -H "Content-Type: application/json"