API-Client
view release on metacpan or search on metacpan
# given: synopsis
require Mojo::UserAgent;
require Mojo::Transaction::HTTP;
$client->process(
Mojo::UserAgent->new,
Mojo::Transaction::HTTP->new
);
resource
resource(Str @segments) : Object
The resource method returns a new instance of the object for the API
resource endpoint specified.
resource example #1
# given: synopsis
$client->resource('status', 200);
serialize
serialize() : HashRef
The serialize method serializes and returns the object as a hashref.
serialize example #1
# given: synopsis
$client->serialize;
update
update(Any %args) : InstanceOf["Mojo::Transaction"]
The update method issues a PUT request to the API resource represented
by the object.
update example #1
# given: synopsis
$client->resource('put')->update(
json => {active => 1}
);
AUTHOR
Al Newkirk, awncorp@cpan.org
LICENSE
Copyright (C) 2011-2019, Al Newkirk, et al.
This is free software; you can redistribute it and/or modify it under
the terms of the The Apache License, Version 2.0, as elucidated in the
"license file"
<https://github.com/iamalnewkirk/api-client/blob/master/LICENSE>.
PROJECT
Wiki <https://github.com/iamalnewkirk/api-client/wiki>
Project <https://github.com/iamalnewkirk/api-client>
Initiatives <https://github.com/iamalnewkirk/api-client/projects>
Milestones <https://github.com/iamalnewkirk/api-client/milestones>
Contributing
<https://github.com/iamalnewkirk/api-client/blob/master/CONTRIBUTE.md>
Issues <https://github.com/iamalnewkirk/api-client/issues>
( run in 0.583 second using v1.01-cache-2.11-cpan-39bf76dae61 )