Perl x Open Food Facts Hackathon: Paris, France - May 24-25 Learn more

NAME

OAuthomatic::ServerDef - Predefined URLs for some services

VERSION

version 0.0202

DESCRIPTION

Manages list of definitions of selected OAuth endpoints. This module is mostly used internally, whenever someone writes:

OAuthomatic->new(
server => 'SomeName',
);

it is used to look up appropriate definition.

Run script oauthomatic_predefined_servers to list all currently known endpoints.

To add server to the list, define module named OAuthomatic::ServerDef::ServerName:

use strict;
sub server {
return OAuthomatic::Server->new(
site_name => 'ServerName', # Must match package name
oauth_temporary_url => 'https://...',
# ... And the rest
);
}
1;

EXPORTS FUNCTIONS

oauthomatic_predefined_list

Returns list of all predefined servers (list of OAuthomatic::Server objects).

oauthomatic_predefined_for_name(ServerName)

Returns predefined object for given name, or dies.

AUTHOR

Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by Marcin Kasperski.

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