Skip to content

Instantly share code, notes, and snippets.

@mzavyalov
mzavyalov / ya.py
Created December 19, 2020 07:12
Yandex call Direct API
#!/usr/bin/env python3
import json
import requests
ENDPOINT = 'https://api.direct.yandex.com/json/v5/campaigns'
TOKEN = "YOUR TOKEN HERE"
headers = {
"Authorization": f"Bearer {TOKEN}",