I'm relatively new to the community. I only started working with FileMaker programming this year and I've been specializing in integrating API and JSON into FM applications. Well, I've been hitting a snag in trying to create folders in Google Drive through FileMaker (using Google's API).
Now, I've looked at their documentation and have tried several cURL options, but I'm having a hard time getting it to denote a name and filetype to the created new object. It will create a file in Google Drive, but it always names it "Untitled" and the filetype is "application/octet-stream", even though I clarify that it should be different (it needs to be application/vnd.google-apps.folder).
If it helps any, this is the cURL option I've embedded in the script:
"-H \"Authorization: " & API_tokens::token_type & " " & API_tokens::access_token & "\"
-X POST -d 'https://www.googleapis.com/upload/drive/v3/files'
'name': 'Google Folder test' , 'mimeType': 'application/vnd.google-apps.folder'}
-H Content-Type: 'application/vnd.google-apps.folder' "
Any help figuring this out would be appreciated. Thanks!