Skip to content

An Elixir package for consuming Planning Center Online's public API

License

Notifications You must be signed in to change notification settings

geolessel/pco-api-elixir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PcoApi

TODO: Add description

Installation

If available in Hex, the package can be installed as:

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

    def deps do
      [{:pco_api, "~> 0.1.0"}]
    end
  2. Ensure pco_api is started before your application:

    def application do
      [applications: [:pco_api]]
    end

Usage

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 exporting 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")

About

An Elixir package for consuming Planning Center Online's public API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages