Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ GCloudex uses HTTPoison for the HTTP requests, Poison for JSON encoding/decoding

1. Add gcloudex to your list of dependencies in `mix.exs`:

```
```elixir
def deps do
[{:gcloudex, git: "git@github.com:sashaafm/gcloudex.git"}]
end
```

2. Ensure gcloudex is started before your application:

```
```elixir
def application do
[applications: [:gcloudex]]
end
Expand All @@ -38,7 +38,7 @@ Put that file in your application's config folder and rename the file to

Finally put inside the config file you want (like `dev.exs`) the following line:

```
```elixir
config :goth,
json: "config/<filename>.json" |> Path.expand |> File.read!
```
Expand All @@ -47,19 +47,19 @@ That's all you need to use GCloudex.

## Usages Examples
### Cloud Storage:
```
```elixir
GCloudex.CloudStorage.Client.list_buckets # => {:ok, %HTTPoison.Response{body: ..., status_code: 200}}
GCloudex.CloudStorage.CLient.put_object "bucket_name", "this_file.txt" # => {:ok, %HTTPoison.Response{body: ..., status_code: 200}}
```

### Cloud SQL:
```
```elixir
GCloudex.CloudSQL.Client.list_databases "instance_name" # => {:ok, %HTTPoison.Response{body: ...,status_code: 200}}
GCloudex.CloudSQL.Client-insert_databaes "instance_name", "db_name" # => {:ok, %HTTPoison.Response{body: ...,status_code: 200}}
```

### Cloud Speech:
```
```elixir
body = """
{
"audio": {
Expand Down