OAuthomatic::ServerDef - Predefined URLs for some services
version 0.0202
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;
Returns list of all predefined servers (list of OAuthomatic::Server objects).
Returns predefined object for given name, or dies.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
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.