Elixir Google Drive
Elixir library to work files of Google Drive
- Use this wizard to create or select a project in the Google Developers Console and automatically turn on the API. Click Continue, then Go to credentials.
- On the Add credentials to your project page, create Service account key.
- Select your project name as service account and JSON as key format, download the created key and rename it to client_secret.json.
- Press Manage service accounts on a credential page, copy your Service Account Identifier: [projectname]@[domain].iam.gserviceaccount.com
- Create or open existing document on your Google Drive and add Service Account Identifier as user invited in Collaboration Settings.
- Setup your project:
defp deps do
[
{:elixir_google_drive_api, "~> 0.4"}
]
end
- Add client_secret.json in your
config.exs
or other config file, likedev.exs
orprod.secret.exs
.
config :goth, json: "./config/client_secret.json" |> File.read!
- Run
mix deps.get && mix deps.compile
.
For About Resource details, see the resource representation page.
For Changes Resource details, see the resource representation page.
For Channels Resource details, see the resource representation page.
For Comments Resource details, see the resource representation page.
For Files Resource details, see the resource representation page.
For Permissions Resource details, see the resource representation page.
For Replies Resource details, see the resource representation page.
For Revisions Resource details, see the resource representation page.
For Revisions Resource details, see the resource representation page.
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/elixir_google_drive_api.