Skip to content

Instantly share code, notes, and snippets.

@DavidAntaramian
Last active February 23, 2016 03:10
Show Gist options
  • Save DavidAntaramian/af34168fc353805951fa to your computer and use it in GitHub Desktop.
Save DavidAntaramian/af34168fc353805951fa to your computer and use it in GitHub Desktop.
config :slackreceipt, :oauth
consumer_key: "consumer-key",
private_key_path: "/Users/joshdholtz/Projects/slackreceipt/priv/key.key"
defmodule Slackreceipt.Xero do
@consumer {Application.get_env(:slackreceipt, :oauth)[:consumer_key], Application.get_env(:slackreceipt, :oauth)[:private_key_path], :rsa_sha1}
def get(url, params) do
:oauth.get(url, params, @consumer)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment