NAME
Business::GoCardless::Client
DESCRIPTION
This is a class for the lower level requests to the gocardless API. generally there is nothing you should be doing with this.
ATTRIBUTES
token
Your gocardless API token, this attribute is required.
base_url
The gocardless API URL, defaults to $ENV{GOCARDLESS_URL} or https://gocardless.com.
api_path
The gocardless API path, defaults to /api/v1.
app_id
Your gocardless app identifier, defaults to $ENV{GOCARDLESS_APP_ID} or will exit if not set.
app_secret
Your gocardless app secret, defaults to $ENV{GOCARDLESS_APP_SECRET} or will exit if not set.
webhook_secret
Your gocardless webhook secret, defaults to $ENV{GOCARDLESS_WEBHOOK_SECRET} or will exit if not set.
merchant_id
Your gocardless merchant identifier, defaults to $ENV{GOCARDLESS_MERCHANT_ID} or will exit if not set.
user_agent
The user agent string used in requests to the gocardless API, defaults to business-gocardless/perl/v . $version_of_this_library . - . $api_version
METHODS
api_get
api_post
api_put
Make a request to the gocardless API:
my $data = $Client->api_get( '/merchants/123ABCD/bills',\%params );
In list context returns the links and pagination headers:
my ( $data,$links,$info ) = $Client->api_get( ... );
AUTHOR
Lee Johnson - leejo@cpan.org
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. If you would like to contribute documentation, features, bug fixes, or anything else then please raise an issue / pull request:
https://github.com/Humanstate/business-gocardless