Simple Ubecart REST API

Contrib type: 
Module
Status: 
Complete and working
Moderation: 
Awaiting moderation

Downloads

Compatibility: 
Ubercart 2.x

A module for drupal 6 that opens a minimal REST API.

It's easy to extend and very useful to integrate Ubecart with non-drupal applications (like Flash applications).

The module is quite simple and by default only supports one command: "buy" which adds a set of items to the cart and redirects to the checkout page.

Example Call:

http://yourdomain.com/uc-rest-api-call?cmd=buy&pid=17,18&quantity=2,2

In order to add new commands just modify the file uc_pagosonline.module, by adding new cases in the "uc_rest_api_call_page" function.

If you have new interesting commands please post them as comments...


PreviewAttachmentSize
Compressed Zip File - Uncompress to your modules folder1.05 KB
TR
TR's picture
Offline
Bug FinderFAQ ModeratorGetting busy with the Ubercode.
Joined: 11/05/2007
Juice: 3300
Why? Cart links does the

Why?

Cart links does the exact same thing as described above, and more complex REST services can be accomplished using Services and uc_services.

<tr>.