Services_Compete
[ class tree: Services_Compete ] [ index: Services_Compete ] [ all elements ]

Class: Services_Compete

Source Location: /Services_Compete-0.1.0/Compete.php

Class Overview


Class for accessing and retrieving information from Compete SnapShot API.


Author(s):

Version:

  • Release: @package_version@

Methods


Inherited Variables

Inherited Methods


Class Details

[line 52]
Class for accessing and retrieving information from Compete SnapShot API.

Example:

  1.  require_once 'Services/Compete.php';
  2.  
  3.  $result $compete->get('mixi.jp');
  4.  
  5.  print_r($result);



[ Top ]


Method Detail

__construct (Constructor)   [line 64]

Services_Compete __construct( string $api_key)

Compete service wrapper
  • Access: public

Parameters:

string   $api_key   —  API key provided by Compete

[ Top ]

get   [line 181]

object all get( )

Get all data from fetched data
  • Return: simplified data
  • Access: public

[ Top ]

getDeals   [line 161]

object simplified getDeals( )

Get deals data from fetched data
  • Return: deals data
  • Access: public

[ Top ]

getRaw   [line 201]

object unprocessed getRaw( )

Get all data from fetched data
  • Return: simplexml object
  • Access: public

[ Top ]

getTraffic   [line 136]

object simplified getTraffic( )

Get traffic data from fetched data
  • Return: traffic data
  • Access: public

[ Top ]

getTrust   [line 117]

object simplified getTrust( )

Get trust data from fetched data
  • Return: trust data
  • Access: public

[ Top ]

query   [line 76]

bool query( string $domain, [string $icon_size = 'large'])

Compete service wrapper
  • Return: true on success
  • Access: public

Parameters:

string   $domain   —  domain to get statistics
string   $icon_size   —  options 'small' or 'large' - default

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:44:54 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.