Example for google drive simple upload rest API - rest

As per the documentation, if I wish to upload only media without any metadata, the simple upload will do. And the documentation says:
So, as per the documentation, I formed the request as follows and the body of the request is binary data:
But I am not able to figure out where to set the parent directory information for the media being uploaded if the body is comprised of only media.
Do I need to submit two requests, one for metadata and one for media? For that, we are provided with the multipart upload.
Can anyone please help me with a working example of a simple upload?

The form-data section in this Postman docs page might help you with entering the file location.
I found a YouTube video on the subject too.

Related

Confirmation on the UPS Rate API test URL

I have downloaded the UPS Rate API zip file and the JSON documentation uses https://wwwcie.ups.com/ship/{version}/rating{requestoption} for the POST request to get information.
Watching a youtube video from 2018 however shows a different set of documentation and a different POST URL (https://wwwcie.ups.com/rest/Rate)
I can get a response from the URL on the outdated documentation and have found a few other articles/questions that are using the older URL even recently, but all I ever get from the URL in the current documentation is an Invalid Access License Number error even though the number is correct.
Can anyone shed some light on what the difference is between these two are?
Surely one of those urls is the shipping api, the other is rate?
URLS change depending on format JSON or XML or whatever.

Dropbox Paper API - video not showing when posting markdown

I am able to create new paper documents using the Dropbbox Paper API, however when I post markdown - nothing I try is able to include video's in the post - instead I get just the text and a link to the video - no video showing.
I try sending the same markdown as is exported and it still does not work - for instance neither of these forms work:
# Test
[https://youtu.be/rhSg9X3q2gc](https://youtu.be/rhSg9X3q2gc)
https://youtu.be/rhSg9X3q2gc
[Cross-linking for reference: https://www.dropboxforum.com/t5/API-Support-Feedback/Paper-API-video-not-showing/m-p/320408#M18892 ]
The Dropbox Paper API doesn't offer the ability to programmatically embed media like that unfortunately. When uploading using /2/paper/docs/create or /2/paper/docs/update you'll just get the text, as mentioned. I'll pass this along as a feature request.

Import file responses into Qualtrics using API

My Qualtrics survey consists of the Likert type and file response questions, a survey can be previewed here. Preview screenshot also attached below. This is linked to another question which I posted on this topic, where I am trying to submit survey response from a Unity Game. I can submit the response to Likert type questions by creating a CSV file and then calling the API, but how do I submit the txt/csv file as a response to the second question for the same response(Engagement data dump through API call). Another workaround I thought was to use a text-box as the second question where I can dump the entire data, but the problem is that Qualtrics text-box allows responses smaller than 20k characters only.
If Qualtrics doesn't support this, is there any other way to google sheet API or Google API script that lets you do that?

How to add images webservice?

I have a web-service which accepts image data.Anyone guide me how do I sent image file which I have captured from my phone to the services on a button click?. I searched the smartface docs and also the website I got an idea of uploading to a Web-client but didn't find anything of how to upload data to SOAP services.
Thanks.
I don't know what kind of data does your webservice except.
If you are using capture function of camare, you will be able to reach the path of photo.
http://www.smartface.io/developer/guides/device/camera-usage-2/#capture
Also, you can save the captured photo, and use it by the name you gived.
http://www.smartface.io/developer/guides/device/camera-usage-2/#save
If these documents don't help, can you share the url of service in order for me to check it?

Can I import or upload an audio file to soundcloud via the api using a URL vs. file data?

I'm trying to upload/import a track to soundcloud via their api.
Right now, it looks like you can only upload an audio file, but you can only do it by POSTing the file data.
My question is, is it possible to import to soundcloud (through the api) from a URL?
sort of like they do here: http://importer.soundcloudlabs.com
but via the soundcloud api.
Any ideas? I don't really want to make this a 2 legged process (download audio file, then upload file data to soundcloud)
Thanks!
I don't think this is possible. On the importer, you'll probably find that behind the scenes, it's doing that two-step itself. User inputs url, back end server downloads file, then uploads to SoundCloud API.