Initial commit

This commit is contained in:
David Frassi
2026-06-17 01:26:44 +02:00
commit 51c56a6f30
65 changed files with 3731 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
import os
import requests
import json
from dotenv import load_dotenv
load_dotenv()
token = os.getenv("BUFFER_ACCESS_TOKEN")
url = "https://api.buffer.com/graphql"
headers = {"Authorization": f"Bearer {token}", "Content-Type": "application/json"}
query = """
query {
__type(name: "PostInputMetaData") {
name
inputFields {
name
type {
name
kind
ofType {
name
kind
}
}
}
}
}
"""
resp = requests.post(url, headers=headers, json={'query': query})
print(json.dumps(resp.json(), indent=2))