TODO: Add description
If available in Hex, the package can be installed as:
-
Add pco_api to your list of dependencies in
mix.exs
:def deps do [{:pco_api, "~> 0.1.0"}] end
-
Ensure pco_api is started before your application:
def application do [applications: [:pco_api]] end
To get this working locally, PcoApi
needs to know your API key/id
and secret. If you need to get one, go to
https://api.planningcenteronline.com/oauth/applications
and set up a Personal Access Token.
Once you have an Application ID and Secret, you need to use
those in environment variables when you start your app. For
development, you can start up an iex
session by export
ing the
variables, or you can explicitly set them during startup:
> PCO_API_KEY="MY_KEY" PCO_API_SECRET="MY_SECRET" iex -S mix
You can then grab a list of people in your account with:
iex(1)> PcoApi.People.get("people")