Advertiser API
Sponsorship Reporting
1 min
{ "tab" "examples", "url" "https //api paved com/advertiser/v1/sponsorships", "name" "get sponsorship reports", "method" "get", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[ { "kind" "required", "name" "authorization", "type" "string", "children" \[], "description" "" } ], "bodydataparameters" \[], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "kvxjabmg5ag4ppsgs1kfz", "code" "{\n \\"id\\" 99999,\n \\"uuid\\" \\"4a1d2630\\",\n \\"newsletter name\\" \\"lolita's newsletter\\",\n \\"status\\" \\"sent\\",\n \\"run date\\" \\"2022 10 23\\",\n \\"stats\\" {\n \\"subscriber count\\" \\"10,000\\",\n \\"open count\\" \\"4,000\\",\n \\"open rate\\" \\"40 0%\\",\n \\"click count\\" \\"62\\",\n \\"click rate\\" \\"0 534%\\"\n }\n },\n {\n \\"id\\" 10000,\n \\"uuid\\" \\"a7138738\\",\n \\"newsletter name\\" \\"phphelp\\",\n \\"status\\" \\"scheduled\\",\n \\"run date\\" \\"2022 12 13\\",\n \\"stats\\" {\n \\"subscriber count\\" \\"9,000\\",\n \\"open count\\" \\"0\\",\n \\"open rate\\" \\"0 000%\\",\n \\"click count\\" \\"0\\",\n \\"click rate\\" \\"0 000%\\"\n }\n }", "language" "200", "customlabel" "" }, { "id" "lxhmpx7ttpywsph6cvdq ", "code" "{\n \\"message\\" \\"ain't no cake like that \\"\n }", "language" "404", "customlabel" "" } ], "selectedlanguageid" "kvxjabmg5ag4ppsgs1kfz" }, "examples" { "languages" \[ { "id" "9ctic o0rajfppan94cby", "code" "curl location request get 'https //api paved com/advertiser/v1/sponsorships' \\\\\n header 'accept application/json' \\\\\n header 'authorization token xx'", "language" "curl", "customlabel" "" }, { "id" "9mpxnzsmiyjcezqqmeknj", "code" "var request = require('request');\nvar options = {\n 'method' 'get',\n 'url' 'https //api paved com/advertiser/v1/sponsorships',\n 'headers' {\n 'accept' 'application/json',\n 'authorization' 'token xx'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "language" "nodejs", "customlabel" "" }, { "id" "yob0lxnrs91soubnvea65", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"authorization\\", \\"token xx\\");\n\nvar requestoptions = {\n method 'get',\n headers myheaders,\n redirect 'follow'\n};\n\nfetch(\\"https //api paved com/advertiser/v1/sponsorships\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "language" "javascript", "customlabel" "" }, { "id" "uk66jg 8urtxc01xwvuie", "code" "import requests\n\nurl = \\"https //api paved com/advertiser/v1/sponsorships\\"\n\npayload={}\nheaders = {\n 'accept' 'application/json',\n 'authorization' 'token xx'\n}\n\nresponse = requests request(\\"get\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "language" "python", "customlabel" "" }, { "id" "newisn8yujsj534jzyhpf", "code" "require \\"uri\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //api paved com/advertiser/v1/sponsorships\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http get new(url)\nrequest\[\\"accept\\"] = \\"application/json\\"\nrequest\[\\"authorization\\"] = \\"token xx\\"\n\nresponse = https request(request)\nputs response read body\n", "language" "ruby", "customlabel" "" } ], "selectedlanguageid" "9ctic o0rajfppan94cby" }, "description" "list all sponsorships with performance stats ", "currentnewparameter" { "label" "header parameter", "value" "headerparameters" } }