url_profile_alexa.module

Version

1.5 (checked in on 2007/10/31 at 21:59:17 by alexb)

Description

Gather information about URL from Alexa. Sponsored by Development Seed. Developed by Aron Novak <aaron at szentimre dot hu>

Requirements: php4-mhash package, exactly the mhash function

Constants

Namesort iconDescription
ACCESS_KEY
OPERATION
RESPONSE_GROUP
SECRET_ACCESS_KEY
SERVICE

Functions

Namesort iconDescription
theme_url_profile_alexaReturn all the data fields
theme_url_profile_createdShow the creation time of the site
theme_url_profile_descShow the description of the site
theme_url_profile_rankShow the rank of the site
theme_url_profile_thumbnailShow the image of the site
theme_url_profile_titleShow the title of the site
url_profile_alexa_admin_settingsAdministration settings for Alexa API access credentials
url_profile_alexa_cronOwn cron function to ensure update of alexa datas
url_profile_alexa_helpImplementation of hook_help().
url_profile_alexa_menuImplementation of hook_menu().
url_profile_alexa_permImplements hook_permissions
url_profile_alexa_refresh_feedManually force to refresh a specific feed
url_profile_alexa_show_thumbnailRetrieve and show the site thumbnail
url_profile_alexa_url_profileImplementation of hook_url_profile().
_url_profile_alexa_calculate_RFC2104HMACCalculate the SHA1 hash of gived data with the <var>$key</var>
_url_profile_alexa_generate_img_pathReturn the url_profile's image path
_url_profile_alexa_generate_rest_urlGenerate URL for alexa wis
_url_profile_alexa_generate_timestampTimestamp format: yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
_url_profile_alexa_get_from_cacheCheck if the URL was downloaded previously and cached
_url_profile_alexa_get_infoGet informations of an URL with the aid of Alexa Web Information Service http://docs.amazonwebservices.com/AlexaWebInfoService/1-0/
_url_profile_alexa_get_thumbnailGet the image data with the help of Alexa API
_url_profile_alexa_is_in_cacheCheck if a given profile's alexa data is cached or not
_url_profile_alexa_put_imgIf run PHP4, need to define file_put_contents. In PHP5 this is native function
_url_profile_alexa_put_in_cacheCache the retrieved fields into SQL table
_url_profile_alexa_search_fieldSearch in xml_parse_into_struct function result for a field