Import p5-Twitter-API-1.0005

Twitter::API provides an interface to the Twitter REST API for perl.

Features:
* full support for all Twitter REST API endpoints
* not dependent on a new distribution for new endpoint support
* optionally specify access tokens per API call
* error handling via an exception object that captures the full
  request/response context
* full support for OAuth handshake and Xauth authentication

Additional features are available via optional traits:
* convenient methods for API endpoints with simplified argument
  handling via ApiMethods
* normalized booleans (Twitter likes 'true' and 'false', except when
  it doesn't) via NormalizeBooleans
* automatic decoding of HTML entities via DecodeHtmlEntities
* automatic retry on transient errors via RetryOnError
* "the whole enchilada" combines all the above traits via Enchilada
* app-only (OAuth2) support via AppAuth
* automatic rate limiting via RateLimiting

OK sthen@
This commit is contained in:
afresh1 2020-05-17 18:48:07 +00:00
parent 93a3646755
commit 1af58e0834
4 changed files with 93 additions and 0 deletions

View File

@ -0,0 +1,39 @@
# $OpenBSD: Makefile,v 1.1.1.1 2020/05/17 18:48:07 afresh1 Exp $
COMMENT = Twitter REST API library for Perl
DISTNAME = Twitter-API-1.0005
CATEGORIES = net
PKG_ARCH = *
MAINTAINER = Andrew Hewus Fresh <afresh1@openbsd.org>
# Perl
PERMIT_PACKAGE = Yes
MODULES = cpan
RUN_DEPENDS = converters/p5-JSON-MaybeXS \
devel/p5-Module-Runtime \
devel/p5-Moo \
devel/p5-MooX-Aliases \
devel/p5-MooX-Traits \
devel/p5-Ref-Util \
devel/p5-Sub-Exporter-Progressive \
devel/p5-Throwable \
devel/p5-Try-Tiny \
devel/p5-namespace-clean \
security/p5-IO-Socket-SSL \
www/p5-HTML-Parser \
www/p5-HTTP-Message \
www/p5-HTTP-Thin \
www/p5-URI \
www/p5-URL-Encode \
www/p5-WWW-OAuth>=0.006
TEST_DEPENDS = devel/p5-Test-Fatal \
devel/p5-Test-Pod \
devel/p5-Test-Spec \
devel/p5-Test-Warnings \
www/p5-HTTP-Message
CONFIGURE_STYLE = modbuild tiny
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (Twitter-API-1.0005.tar.gz) = 5lJC78u/7H/6yfYvpnePu7096lOeu1N8GH4nRzcHni0=
SIZE (Twitter-API-1.0005.tar.gz) = 56000

View File

@ -0,0 +1,21 @@
Twitter::API provides an interface to the Twitter REST API for perl.
Features:
* full support for all Twitter REST API endpoints
* not dependent on a new distribution for new endpoint support
* optionally specify access tokens per API call
* error handling via an exception object that captures the full
request/response context
* full support for OAuth handshake and Xauth authentication
Additional features are available via optional traits:
* convenient methods for API endpoints with simplified argument
handling via ApiMethods
* normalized booleans (Twitter likes 'true' and 'false', except when
it doesn't) via NormalizeBooleans
* automatic decoding of HTML entities via DecodeHtmlEntities
* automatic retry on transient errors via RetryOnError
* "the whole enchilada" combines all the above traits via Enchilada
* app-only (OAuth2) support via AppAuth
* automatic rate limiting via RateLimiting

View File

@ -0,0 +1,31 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2020/05/17 18:48:07 afresh1 Exp $
${P5SITE}/Twitter/
${P5SITE}/Twitter/API/
${P5SITE}/Twitter/API.pm
${P5SITE}/Twitter/API/Context.pm
${P5SITE}/Twitter/API/Error.pm
${P5SITE}/Twitter/API/Role/
${P5SITE}/Twitter/API/Role/RequestArgs.pm
${P5SITE}/Twitter/API/Trait/
${P5SITE}/Twitter/API/Trait/ApiMethods.pm
${P5SITE}/Twitter/API/Trait/AppAuth.pm
${P5SITE}/Twitter/API/Trait/DecodeHtmlEntities.pm
${P5SITE}/Twitter/API/Trait/Enchilada.pm
${P5SITE}/Twitter/API/Trait/Migration.pm
${P5SITE}/Twitter/API/Trait/NormalizeBooleans.pm
${P5SITE}/Twitter/API/Trait/RateLimiting.pm
${P5SITE}/Twitter/API/Trait/RetryOnError.pm
${P5SITE}/Twitter/API/Util.pm
@man man/man3p/Twitter::API.3p
@man man/man3p/Twitter::API::Context.3p
@man man/man3p/Twitter::API::Error.3p
@man man/man3p/Twitter::API::Role::RequestArgs.3p
@man man/man3p/Twitter::API::Trait::ApiMethods.3p
@man man/man3p/Twitter::API::Trait::AppAuth.3p
@man man/man3p/Twitter::API::Trait::DecodeHtmlEntities.3p
@man man/man3p/Twitter::API::Trait::Enchilada.3p
@man man/man3p/Twitter::API::Trait::Migration.3p
@man man/man3p/Twitter::API::Trait::NormalizeBooleans.3p
@man man/man3p/Twitter::API::Trait::RateLimiting.3p
@man man/man3p/Twitter::API::Trait::RetryOnError.3p
@man man/man3p/Twitter::API::Util.3p