https://github.com/adolfosilva/soundcloud
Soundcloud API client for Elixir
https://github.com/adolfosilva/soundcloud
api-client api-wrapper elixir soundcloud
Last synced: 7 days ago
JSON representation
Soundcloud API client for Elixir
- Host: GitHub
- URL: https://github.com/adolfosilva/soundcloud
- Owner: adolfosilva
- License: mit
- Created: 2018-01-16T20:56:35.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-09T11:12:09.000Z (over 8 years ago)
- Last Synced: 2025-08-11T05:35:00.223Z (11 months ago)
- Topics: api-client, api-wrapper, elixir, soundcloud
- Language: Elixir
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Soundcloud [](https://travis-ci.org/adolfosilva/soundcloud) [](https://hex.pm/packages/soundcloud) [](https://opensource.org/licenses/MIT)
A Soundcloud API wrapper written in Elixir.
## Usage
```elixir
iex> {:ok, client} = Soundcloud.client(client_id: "foobartar", access_token: "72-27has7d2-7afajf92")
iex> r = Soundcloud.Client.get(client, "/me/tracks", limit: 1)
iex> length(r)
1
iex> List.first(r).title
"Be my Love"
```
## Installation
Add `soundcloud` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:soundcloud, "~> 0.1.0"}
]
end
```
Then configure your `config/dev.exs` (or whatever mix env you want to use), like this:
```elixir
config :soundcloud, :auth,
client_id: System.get_env("SOUNDCLOUD_CLIENT_ID"),
access_token: System.get_env("SOUNDCLOUD_ACCESS_TOKEN")
```
And don't forget to set the environment variables in your shell.
## Documentation
You can find the documentation at https://hexdocs.pm/soundcloud/
## License
This software is licensed under the MIT license. See [LICENSE](LICENSE) for details.