{"id":718,"date":"2020-12-22T14:44:23","date_gmt":"2020-12-22T14:44:23","guid":{"rendered":"https:\/\/wiki.pontiac.media\/?page_id=718"},"modified":"2021-12-08T15:05:46","modified_gmt":"2021-12-08T15:05:46","slug":"example-code","status":"publish","type":"docs","link":"https:\/\/wiki.pontiac.media\/?docs=api\/getting-started-with-pontiac-api\/example-code","title":{"rendered":"Example Code"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">The full implementation of the steps to set up a campaign, written in Python can be found here: <a href=\"https:\/\/sec-wiki.pontiac.media\/wp-content\/uploads\/2020\/12\/pythonPontiacTutorial.zip\">pythonPontiacTutorial<\/a>.<\/span><br \/>\n<span style=\"font-weight: 400;\">Make sure that you set your credentials and start and end date in the file pontiacTutorial.py before running it. <\/span><br \/>\n<span style=\"font-weight: 400;\">pontiacTutorial.py will be the entry point. <\/span><br \/>\n<span style=\"font-weight: 400;\">To install the latest version of python and for more help on getting started with Python: <a href=\"https:\/\/www.python.org\/\">https:\/\/www.python.org\/<\/a><\/span><br \/>\n&nbsp;<br \/>\n&nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":710,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-718","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=\/wp\/v2\/docs\/718","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=718"}],"version-history":[{"count":1,"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=\/wp\/v2\/docs\/718\/revisions"}],"predecessor-version":[{"id":6458,"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=\/wp\/v2\/docs\/718\/revisions\/6458"}],"up":[{"embeddable":true,"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=\/wp\/v2\/docs\/710"}],"prev":[{"title":"Pontiac API Overview","link":"https:\/\/wiki.pontiac.media\/?docs=api\/getting-started-with-pontiac-api\/pontiac-api-overview","href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=\/wp\/v2\/docs\/6457"}],"wp:attachment":[{"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=718"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=%2Fwp%2Fv2%2Fdoc_tag&post=718"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}