2017 © Pedro Peláez
 

library rankinity-api

A simple PHP wrapper for the Rankinity API

image

jaybizzle/rankinity-api

A simple PHP wrapper for the Rankinity API

  • Wednesday, March 2, 2016
  • by JayBizzle
  • Repository
  • 1 Watchers
  • 3 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Rankinity API

Build Status StyleCI Total Downloads, (*1)

Installation

Add "jaybizzle/rankinity-api": "1.*" to your composer.json., (*2)

Usage

You can read the official Rankinity API documention here - http://my.rankinity.com/api.en, (*3)

All the Rankinity API endpoints can be called by prefixing the name with get e.g, (*4)

use Jaybizzle\Rankinity;

$r = new Rankinity('YOUR_API_KEY');

// get all projects
$projects = $r->getProjects();

Most Rankinity API endpoints can accept query string parameters, such as sort_property to sort the results returned. Taking the above projects example, we can simply do this..., (*5)

$projects = $r->sortProperty('name')->getProjects();

These can also be chained..., (*6)

$projects = $r->sortProperty('name')->sortAscending('false')->getProjects();

Some more examples..., (*7)

//  list of competitors
$competitors = $r->project('project_id')->getCompetitors();

// list of keywords
$keywords = $r->project('project_id')->getKeywords();

// list of keyword groups
$groups = $r->project('project_id')->getGroups();

// list of ranks
$ranks = $r->project('project_id')->searchEngine('search_engine_id')->getRanks();

NOTE: Query parameters are listed in the Rankinity API docs as snake_case but we access them using camelCase methods so all method calls have a consistent naming convention, (*8)

The Versions

02/03 2016

dev-master

9999999-dev https://github.com/JayBizzle/Rankinity-API/

A simple PHP wrapper for the Rankinity API

  Sources   Download

MIT

The Requires

 

The Development Requires

api rankinity

02/03 2016

v1.0.0

1.0.0.0 https://github.com/JayBizzle/Rankinity-API/

A simple PHP wrapper for the Rankinity API

  Sources   Download

MIT

The Requires

 

The Development Requires

api rankinity