Showing posts with label google api postman. Show all posts
Showing posts with label google api postman. Show all posts

Saturday, August 7, 2021

Upload Files on Google Drive using Postman


SR. No.
Parameter Value
1
Request Type Post
2
URL https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart
3.1 Authorization Authorization Type Oauth2.0
3.2
Available Token <here-is-the-token>
3.3
Token Name Authorization
3.4
Grant Type Authorization Code
4.1 Headers Authorization Bearer <here-is-the-token>
4.2
Content-Type multipart/form-data; boundary=<calculated when request is sent>
4.3
Content-Length <calculated when request is sent>
4.4
Host <calculated when request is sent>
5.1 Body Key Empty
5.2
File filename.json
5.3
Key Empty
5.4
File file.png

Screenshots : (Click on image to see bigger view)


 



a) filename.json

    Content-Type: application/json; charset=utf-8
    {
      "name": "file.png",
      "mimeType": "image/png"
    }

b) file.png

    An image file