NAME
App::TwitShell::Resources - Container for resources retrieving and parsing functions.
VERSION
Version 4.07
SYNOPSIS
App::TwitShell::Resources contains every common function for HTTP request and data parsing/formatting.
FUNCTIONS
get_request( $url )
Execute a simple GET request.
auth_get_request( $url, $usr, $pwd, $api )
Execute a GET request with HTTP authorization.
auth_post_request( $url, $usr, $pwd, \%request, $api )
Execute a POST request with HTTP authorization.
parse_response( $data )
Parse a HTTP response splitting JSON data, and return a JSON object.
parse_post_hash( $data, $type )
Parse a JSON object, and return an array of posts.
get_api( $network )
Return an API hash based on selected network.
format_post( $status, $type )
Format a single post, from a hash, based on selected post type.
relative_time( $time_value )
Return the relative time from a standard data.