related links

   Bluekora

   Linkedin

   Facebook

   Chris Shiflett Blog

   CSS-Tricks

Coffee!!
Drag Me!

Welcome!

I’m a 23 year old lad from Portugal, Vila Nova de Gaia.
I’m a Software Engineer working, at the moment, at bluekora.
I can be found on LinkedIn at my profile.

June 29 2010

WP-RESTful WordPress Plugin

Tagged Under : , , , , , ,

Hello!

I’m 99% sure that you already heard about APIs or REST APIs, it’s what Twitter, flickr and a lot more companies use to share they’re resources with a consumer.
A consumer can be anything from a website (for example, showing your Twitter updates on your blog or personal website) to a desktop / mobile application (iPhone, Android, Windows Mobile, …).
This is possible because all information sent to and from the API is encoded in either two common, inter-platform language, XML and JSON.
The difference between a regular API and a REST API is on the way they work. A REST API requires two entities to work, a client and a server.

Download WP-RESTful (Version 0.1)

Download WP-RESTful Users Plugin (Version 0.1)

Download WP-RESTful Categories Plugin (Version 0.1)

Download WP-RESTful Tags Plugin (Version 0.1)

Follow me for real-time updates

Twitter

How does it work?

WP-RESTful uses OAuth, a widely, commonly and open source API implementation used all over the World (Wide Web).
The way it work is fairly simple.

First a Consumer registers with a Server. At this point the Server will provide the Consumer with 2 tokens, a public and a private token. The public token will be used to communicate and identify the Consumer with the Server while the private token will be stored locally for security and integrity reasons.
After this the Consumer will request the Server with a Request Token. This Request Token will be used to initiate the Authentication Protocol in where the Consumer will be required to authorize the Server.
The Server will create 2 new token (definitive tokens). They will be our authentication tokens.

I know this sounds and seems complicated but you won’t need to do anything as the Plugin will do almost everything for you (Registration and Authentication process are manual).

Plugin features

  • Add new Plugins to API Plugin to extend functionalities to any way you want/need. (See next group)
  • Fully manageable Client and Server side.
  • Ability to choose what fields are allowed to be returned to the consumer.
  • Ability to restrict modules to OAuth authentication process or liberated them and make them open.
  • Load balance system where you can specify how many requests a given consumer is allowed in a 60 minute timeframe.
  • Out of the box Post and Comments management.
  • And much more…

Plugins

As stated on “Plugin Features” you have the ability to develop and/or add new modules to your REST API. This means, for example, if you use a plugin like WP E-Commerce, you can develop a plugin for the REST API in order to provide support for WP E-Commerce resources.
The way these plugins are developed is very similar to how plugins for WordPress are developed.
You can see this video that explains how plugins work and how you can develop them.

Requirements?

All requirements for the plugin to work properly are addressed by the plugin itself, upon activation. You can see your system status on WP-RESTful link after activation the plugin.

How to install?

This plugin is installed like any other WordPress plugin out there.

  1. First you need to download it from WordPress Plugin Repository.
  2. Upload the contents of the compacted file to your plugin folder on your WordPress installation.
  3. Go to your WordPress Administration page and activate the Plugin (Plugins → Installed → WP-RESTful → Activate)
  4. Create a new page, name it API, set the permalink to /api and set the content as [REST_return] and save the page.
  5. Go to WP-RESTful → WP-RESTful to check your system status.

I need help!

Check these two videos. They will help you starting up.

This post will be updated, if needed, to reflect changes made to the plugin.

March 30 2010

WP e-commerce SKU on variations

Tagged Under : , , , , ,

UPDATE – 22/02/2011

Files for the 3.7.8 version of wp-e-commerce. I have provided only the altered files and full plugin if you just want to replace it.
DON’T FORGET TO BACKUP FIRST!!

Download → http://bit.ly/3-7-8-SKU

UPDATE – 01/09/2010

If you need additions that are not contemplated in this fix package you can email me for a specific quote.

UPDATE – 18/05/2010

There has been an update on wp-e-commerce a few days ago and if you have applied my add-on you’ll probably have problems with the plugin. Post a comment or email me if you’re having problems.

===============================

If you are using wp-ecommerce plugin for wordpress and you ran into some missing functionalities this might help you.

The specific mod I’ll show you today will enable you to specify SKU to any variation on any product on your system.

I don’t know how proficient your are on programming WordPress, but let me know if you run into any difficulty.

So, first of all you need to add a new field on your database on table wp_wpsc_variations_properties called “sku”. I added this field as varchar with a length of 64 characters, but do adapt this one to fit your needs.

Backup your e-commerce plugin folder.

DOWNLOAD 3.7.8 FILES HERE

This should get you up and running. Let me know if you need anything.


scarletbits.com 125x125 Are My Sites Up? Get Chitika Premium Job Board for Web Designers and Web Developers

Tag Cloud