I Have seen the video in youtube which step by step you can create a google Drive API in order to upload files to your gmail account. Video https://www.youtube.com/watch?v=nQnK2k1tEIM . The Video is simple and i’ve done it, i can succesfully upload my files.
But here is my QUESTION: In the video the user goes to Tools => Api => Add new, and complete all the inputs (Name, Mode, Gateaway, App Name, JSON OAUTH, Auth Code)
Can i do this dynamically inside my code ? I have done this dynamically inside my code with dropBox but is different, i don’t know how to do this with google drive because the manual is pity. I searched the scriptcase Manual and they provide this function (sc_api_upload):
sc_api_upload([
‘settings’ => [
‘app_name’ => ‘scriptcase’,
‘gateway’ => ‘google_drive’,
‘json_oauth’ => ‘’,
‘auth_code’ => ‘’,
‘token_code’ => ‘’,
],
‘file’ => {file},
‘destination’ => ‘’,
]);
Can i do this in order to have the same result with the video? EXAMPLE
sc_api_upload([
‘settings’ => [
‘app_name’ => ‘scriptcase’,
‘gateway’ => ‘google_drive’,
‘json_oauth’ => ‘myJson_oauth’,
‘auth_code’ => ‘myAuth_code’,
‘token_code’ => ‘’, ?What is this ?
],
‘file’ => {file},
‘destination’ => ‘’,
]);
I don’t know what to place in file => {file}
is it required ?
I don’t know what to place in destination => ''
is it required ?
And what is token_ code=>''
? In the Manual of scriptcase token_code
the description is blank white empty, they are not saying anything or even in the video is nowhere. What is it ? is it required ?
Thank you everyone