Рет қаралды 1,256
This video explains how to upload a file using PipeDrive API.
Here are the details of the API
Method: Post
URI: hubinternational2.pipedrive.c...
Headers:
{
“Accept”: “application/json”,
“Content-Type”: “multipart/form-data”
}
Queries:
{
“api_token”: “your api token”
}
Body:
{
“$content-type”: “multipart/form-data”,
“$multipart”: [
{
“body”: “your deal id”,
“headers”: {
“Content-Disposition”: “form-data; name="deal_id"”
}
},
{
“body”: {
“$content”: “your binary format of the file content”,
“$content-type”: “application/pdf”
},
“headers”: {
“Content-Disposition”: “form-data; name="file"; filename="yourfilename.pdf"”
}
}
]
}