Plug into Cinch

The time has come to share some of the code goodness that I cooked up on my own last week to test Cinch. What have I got for you? One homebrew kit with a handful of PHP5 files in it.

These PHP5 files are presented to jump start a developers access to using Cinch as an API.

Included scripts:

* cinch-api.php – Parse the original RSS feed from Cinch for a given phone number and display the information. This script is meant to demonstrate how the variables work.
* cinch-api-rss-now.php – In real-time this file removes a users phone number from the Cinch RSS feed and generate a new feed. Some variables need to be defined by you.
* cinch-rss.sql – MySQL table to cache the Cinch RSS feed. Once in the table it is open season on how to work with it.
* cinch-api-config.php – This file is used to fill in user data for a RSS feed that is generated from the cached data.
* cinch-api-insert.php – Reads the Cinch RSS feed and inserts the item data into the MySQL table. In this file you can modify every aspect of how the original Cinch data is rewritten to remove phone number, etc.
* cinch-api-rss.php – Pulls the cached data and generates a new RSS 2.0 feed.

If you simply want to remove your phone number from your Cinch feed check out the cinch-api-rss-now.php script. All you need to do is plug your phone number into it and upload it to your web server.

Before I close this out, I’d like to say that if anyone else has some RoR, .Net or Java chops and feels the need to create some Cinch starter scripts you should forward them on.

And last but not least, we are working on the login system here at BTR. Our engineers are sweating in a hot server filled room making it happen. But they won’t stop at logins. You’ll have to check back with us to see.

Leave a Reply

Your email address will not be published. Required fields are marked *