gdrive v0.2.0 Gdrive.Api.File
Support Google drive Files api here
Support all query params.
Send a request
Create a connection
iex> connection = Connection.new(fn scopes ->
{:ok, token} = Goth.Token.for_scope(Enum.join(your_scopes_list, " ")) token.token end)
or
iex> connection = Connection.new(gg_token)
Send a request
{status, data} = Gdrive.Api.File.list(
connection, fields: "files/parents,files/webContentLink,files/id,files/name,files/kind" )
Link to this section Summary
Functions
Exports a Google Doc to the requested MIME type and returns the exported content. Please note that the exported content is limited to 10MB
Link to this section Functions
Link to this function
copy(connection, file_id, opts \\ [])
Link to this function
create(connection, opts \\ [])
Link to this function
delete(connection, file_id, opts \\ [])
Link to this function
empty_trash(connection)
Link to this function
export(connection, file_id, opts \\ [])
Exports a Google Doc to the requested MIME type and returns the exported content. Please note that the exported content is limited to 10MB.
Link to this function
get(connection, file_id, opts \\ [])
Link to this function
list(connection, opts \\ [])
Link to this function
update(connection, file_id, opts \\ [])
Link to this function
upload(connection, opts \\ [])
Link to this function
watch(connection, file_id, opts \\ [])