Skip to content

Instantly share code, notes, and snippets.

@monorkin
Last active December 27, 2018 09:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save monorkin/d79df1012b768b34423865de6c0b6e89 to your computer and use it in GitHub Desktop.
Save monorkin/d79df1012b768b34423865de6c0b6e89 to your computer and use it in GitHub Desktop.
fetch_transactions =
ApiClient.new(api_token).method(:get)
>> JSON.method(:parse)
>> (-> response { response['data']['transactions'] })
fetch_transaction.call('/api/current_user/transactions')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment