Yordadev Docs
Search…
Google Drive
Google Drive has been integrated into the shop service to utilize existing media content for product images and not need to upload all product images.

OAuth Scopes Required

To utilize the ability to access images and videos to attach to Product Variants, the following OAuth scopes are required for Yordadev API to function properly.
  • drive
  • drive.file
These are to be able to go in and grab existing photo's to be selected from to attach to a Product Variant.

Yorspace Root Folder Information

During the OAuth Process, after we have established access tokens we create a root folder. Utilizing the Google Drive Dashboard you can copy whatever you want into it and all the content will be accessible through the Fetch Media Library.
The Root Folder that is created is named "Yorspace Root". If you remove this folder or change the name, the Yorgate Service will create it again for you. This is logged and will be deemed as malicious after rand(2,4) times.
A media_id is the field fileID on the Google Drive Platform.
To obtain a media_id, there are two ways to go about this. You can do it through Google Drive's Dashboard to get the desired contents media_id, more about that here or you can utilize the Fetch Media Library endpoint as shown here.

Attaching Media to Products

For detailed information on this see:
get
https://yorgate.yordadev.network
/v1/gdrive/library
Fetching the Google Drive Library
Last modified 1yr ago