![]() UPLOADED_CONTENTand the attachmentDataRef field has the resource name of theĪttachment, which is used with the Media API to get the attachment contents. In this example, the source field contains Here is an example of the JSON representation of an attachment. This is optional and just an example of what you can do with the bytesĪfter you retrieve them. Note that this function stores the uploaded content in a newly created Driveįile. Return "The uploaded contents have been saved in a Google Drive file: "+ driveFileName Return "Failed to get file content with error code: " + response.getResponseCode() ĭriveFileName = DriveApp.createFile(blob) 'Authorization': 'Bearer ' + service.getAccessToken(), Information such as who and when someone has opened your email is displayed as a popup notification. * file to be read, found in the attachment. Description: Checker Plus for Gmail is simply a Google Chrome extension that enables you to track emails. ![]() The Media API isĪvailable at the following endpoint: " + dataRef + "?alt=media"įollowing is an example function that retrieves the contents of an uploaded You can use the AttachmentDataRef.resourcename with the MediaĪPI to retrieve the contents of the file the user uploaded. ![]() If the user has included a local file (uploaded content) as the attachment, an Return "Failed to get attachment with error code: " + response.getResponseCode() 'Authorization': 'Bearer ' + service.getAccessToken() Message, using the API endpoint to get the attachment. The GetAttachment API is available at the following endpoint: + attachment.nameįield is included in the message payload to the app.įollowing is an example function that gets and returns the attachment from a
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |