You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2.8 KiB
2.8 KiB
<html>
<head>
</head>
</html>
In [ ]:
import json
import requests
input_set = []
with open('pages.json', 'r') as input:
input_set = json.load(input)
# print(input_set)
my_headers = {'Authorization': os.env(directus_token),'Content-Type': 'application/json'}
response = requests.post('https://cms.donavanaldrich.com/items/pages', headers=my_headers, json=(input_set))
# # # response = requests.post('https://httpbin.org/post', data = {'key':'value'})
print(response.json())
In [ ]:
import json
import requests
# input_set = []
# with open('cards.json', 'r') as input:
# input_set = json.load(input)
# print(input_set)
my_headers = {'Authorization': os.env(directus_token),'Content-Type': 'application/json'}
response = requests.post('https://content.donavanaldrich.com/items/cards', headers=my_headers, json=(input_set))
# # # response = requests.post('https://httpbin.org/post', data = {'key':'value'})
print(response.json())
import json
import requests
# input_set = []
# with open('cards.json', 'r') as input:
# input_set = json.load(input)
# print(input_set)
my_headers = {'Authorization': os.env(directus_token),'Content-Type': 'application/json'}
response = requests.post('https://content.donavanaldrich.com/items/cards', headers=my_headers, json=(input_set))
# # # response = requests.post('https://httpbin.org/post', data = {'key':'value'})
print(response.json())
# input_set = []
# with open('cards.json', 'r') as input:
# input_set = json.load(input)
# # print(input_set)