The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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:

    package OAuthomatic::ServerDef::ServerName;
    use strict;
    use warnings;
    use OAuthomatic::Server;

    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.