NAME

WebService::Shutterstock::AuthedClient - Role comprising a REST client with the necessary auth token information

VERSION

version 0.004

DESCRIPTION

This role provides convenience methods for managing an authenticated client. It consumes the WebService::Shutterstock::HasClient role.

You should not need to use this role to use WebService::Shutterstock

ATTRIBUTES

auth_info

HashRef of auth_token and username.

METHODS

auth_token

Returns the token from the auth_info hash.

username

Returns the username from the auth_info hash.

new_with_auth($some_class, attribute => 'value')

Returns an instance of the passed in class initialized with the arguments passed in as well as the auth_info and client provided by this role

with_auth_params(other => 'param')

Returns a HashRef of the passed-in params combined with the auth_token.

AUTHOR

Brian Phillips <bphillips@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2012 by Brian Phillips and Shutterstock, Inc. (http://shutterstock.com).

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.