Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/celso/kanal

A PHP class to handle with the Meo Kanal API
https://github.com/celso/kanal

Last synced: 14 days ago
JSON representation

A PHP class to handle with the Meo Kanal API

Awesome Lists containing this project

README

        

Meo Kanal PHP class
===================

A [PHP class](https://github.com/celso/kanal/blob/master/classes/kanal.php) to handle with the Meo Kanal API

Getting the OAuth keys
======================

You only need to do this once for each application.

Follow these steps to get your OAuth keys:

* Go to http://kanal.pt/developer/application/register and enter:

1. Your application name
2. The application description
3. The OAuth redirect URI for your app, see below.

* After your app is approved go here: http://kanal.pt/developer/application/listing

1. Grab the Client ID and Client Secret and then paste them into the kanal_oauth.php file

* Place the [kanal_oauth.php](https://github.com/celso/kanal/blob/master/kanal_oauth.php) script (with the keys) in a PHP webserver of yours eg: http://myphpserverurl.eu/kanal_oauth.php

* Make sure the OAuth redirect URI for your app at http://kanal.pt/developer/application/listing is the same: http://myphpserverurl.eu/kanal_oauth.php

* Now go to http://myphpserverurl.eu/kanal_oauth.php

* You'll be redirected to Meo Kanal and asked to authorize the app.

* When you return, you'll get missing bit of information: your Access Token.

* Now you have the Client ID, Client Secret and Access Token keys, which you can use with the Meo Kanal class. You don't need the kanal_oauth.php script anymore, nor the OAuth2 classes.

Using the class
===============

It's self explanatory, check the [kanal_unit_tests.php](https://github.com/celso/kanal/blob/master/kanal_unit_tests.php) script and the Meo Kanal API documentation at http://kanal.pt/developer/console#intro_doc

This is a work in progress