user2461609
user2461609

Reputation: 21

How to create and upload a file in google Drive using Salesforce APEX and Drive APIs?

I want to create and upload a document (txt) to google Drive with the help of Salesforce.com APEX code and Google Drive APIs. Do anybody has idea? thanks

Upvotes: 2

Views: 2606

Answers (1)

JunYoung Gwak
JunYoung Gwak

Reputation: 2987

Yes, you can.

Since Google Drive SDK is basically HTTP request and there is HttpRequest Class in Apex, you can use Google Drive SDK with Apex. However, there is no official support for Apex in Google Drive, and you should build your own library for it. Here is documentation about Drive API having some detail of requests and responses you will have with Drive SDK.

Upvotes: 1

Related Questions