elixir-google-drive-api
elixir-google-drive-api copied to clipboard
Elixir library to work files of Google Drive
ElixirGoogleDriveApi
Elixir Google Drive
Elixir library to work files of Google Drive
Usage
- 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
.
Current Status
About
For About Resource details, see the resource representation page.
- [ ] Get
Changes
For Changes Resource details, see the resource representation page.
- [ ] Get Start Page Token
- [ ] List
- [ ] Watch
Channels
For Channels Resource details, see the resource representation page.
- [ ] Stop
Comments
For Comments Resource details, see the resource representation page.
Files
For Files Resource details, see the resource representation page.
- [x] Copy
- [ ] Create
- [ ] Delete
- [ ] Empty Trash
- [ ] Export
- [ ] Generate Ids
- [ ] Get
- [x] Update
- [ ] List
- [ ] Watch
Permissions
For Permissions Resource details, see the resource representation page.
Replies
For Replies Resource details, see the resource representation page.
Revisions
For Revisions Resource details, see the resource representation page.
Teamdrives
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.