URL
NAME
Finance::GDAX::API::URL - Role doing URL assembly for GDAX REST API classes
SYNOPSIS
use Finanace::GDAX::API::URL;
my $url = Finance::GDAX::API::URL.new(debug => False);
$url.add-to-url('test_thing');
say $url.get-url;
# OUTPUTS: https://api.gdax.com/test_thing
DESCRIPTION
This role builds URLs for Finance::GDAX::API classes
ATTRIBUTES
debug Bool
Bool that sets debug mode (will use sandbox). Defaults to true (1).
production-url
The base URI for production requests, including the https://
testing-url
The base URI for testing requests to the GDAX sandbox, including the https://
path (default: "/")
The root path of the URI, required for all API requests. When given, never provide the initial "/".
METHODS
get-url
Returns a string of the assembled URL
get-uri
Returns the URI portion of the assembled URL
add-to-url
Adds to the URL, each will be separated with a '/'. Leading and trailing slashes are stripped.
$url.add-to-url('products');
AUTHOR
Mark Rushing <[email protected]>
COPYRIGHT AND LICENSE
This software is copyright (c) 2017 by Home Grown Systems, SPC.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.