How do you convert a -F curl command to requests in python. Specifically, how would you convert the code below to python. I know Facebook has an sdk for this - but I'm curious if this can be done using the requests library
curl
-F 'name=my new ca'
-F 'access_token=<ACCESS_TOKEN>' HTTPS://graph.Facebook.com/<api_version>/act/customaudiences
Converting to Python using requests - I can't figure out where I am making the error:
import requests
url = 'HTTPS://graph.Facebook.com/<api_version>/act/customaudiences'
param: {'name':'my new ca', 'access_token' = '<ACCESS_TOKEN'}
x = requests.post(url, files = param)