Table of Contents |
---|
...
Code Block |
---|
In [1]: import springserve In [2]: tag = springserve.spotx_connects.new({"name": "SpotX Connect Tag Name Docs", "account_id": 391, "spotx_channel_id": 880933, "bid_floor_type": "static", "rate": 0.01}) In [3]: print tag.ok, tag.id True, 894173 |
"bid_floor_type" could can be "static" or "dynamic".
REST API
POST /api/v0/spotx_connects
Headers
Code Block |
---|
Content-Type application/json Authorization "yourAuthToken" |
...
Code Block |
---|
In [1]: tag = springserve.spotx_connects.get(894173) In [2]: print tag.name "SpotX Connect Tag Name Docs" |
REST API
GET /api/v0/spotx_connects/<id>
Headers
Code Block |
---|
Content-Type application/json Authorization "yourAuthToken" |
...
Code Block |
---|
In [1]: tag = springserve.spotx_connects.get(30424) In [2]: tag.name = "SpotX Connect Tag Name Docs (new name)" In [3]: changed = tag.save() In [4]: changed.ok Out [4]: True In [5]: print changed.name "SpotX Connect Tag Name Docs (new name)" |
REST API
PUT /api/v0/spotx_connects/<id>
Headers
Code Block |
---|
Content-Type application/json Authorization "yourAuthToken" |
...
Code Block |
---|
In [1]: tag = springserve.spotx_connects.get(894173) ln [2]: dupe = tag.duplicate() ln [3]: dupe.ok Out [3]: True In [4]: print dupe.id 893716 |
REST API
GET /api/v0/spotx_connects/<id>/duplicate
Headers
Code Block |
---|
Content-Type application/json Authorization "yourAuthToken" |
...
Code Block |
---|
Content-Type application/json Authorization "yourAuthToken" |
Body (example)
|
Response
Status code 200
Code Block |
---|
{ "id": 638465, "account_id": 391, "name": "Tag Name Docs", "active": true, "rate": "0.01", ... "spotx_connect_enabled": true, "supply_spotx_connects": [ { "spotx_connect_id": 893715 } ], ... } |
...