Tag Archives: web service

news: Yahoo releases service to query to web with json results

22 Dec

f’n sweet

From: http://ajaxian.com/archives/yql-converting-the-web-to-json-with-mock-sql

I like getting data from the web and I love JSON – as it is easy to use. The issue is that not many things on the web come as JSON from the get-go. Hence we need converters. You can use cURL and beautiful soup or roll your own hell of regular expressions. Alternatively you can use Yahoo Pipes to build your converter. Pipes is the bomb but a lot of people complained that there is no version control and that you need to use the very graphical interface to get to your data (which was the point of Pipes but let’s not go there).

AlasRejoice for there is a solution now available and it is called YQL. YQL is a SQL-style language to get information from all kind of web services, and – using oAuth – even Yahoo’s social graph. There is a test console available for you to get to grips with all the information it gives you access to (which is a lot!):

Check It Out:
Ajaxian » YQL – converting the web to JSON with mock SQL

code: php wctravel xml service class

19 Nov

First off this class is incomplete, it will allow you to do the basics up to checking hotel availability. hopefully it offers someone a starting point. I don’t plan on working on this any further unless a client or the community wants it.

Wctravel class ver 0.5.jj
Greg Sidberry
web: elsid.net
email: greg@halfgray.com

This class currently depends on the xmltoarray class
xmltoarray class credits
by: MA Razzaque Rupom
email: rupom_315@yahoo.com / rupom.bd@gmail.com

What does it do:
the wctravel class allows you to utilize the wctravel web service.

development status: None
questions / support: email me

I don’t plan on working on this any further unless theres a client or community need. this class is offered as is, and I take no ownership for what happens or is done with it.

To Wctravel: I contacted your company twice to clear the release of this, check your voicemails

***what i’ve used it for
hotel searching
hotel availability check
property information – I used wctravels weekly files, but you can use requests through the class if wanted

****examples
here are two example uses

–availability check
$wc=new wctravel($session_id);
$wc->setHotel($hotel_id);
$wc->makeArrival($arrive_date);
$wc->makeDepart($depart_date);
$wc->addTravelers($travelers_array); //see addTravels comment for info
$wc->addRoomNumber($rooms_number);
$status=$wc->doRequest(“hotelCheck”);

if($staus===false){
//get errors array
$status=$wc->error;

}
$results=$wc->wcObject['NexRes']['response'][0]['searchResults'][0]['hotelMatches'][0]['match'];

–area hotel seach
$wc=new wctravel($session_id);
$wc->makeArrival($timestamp);
$wc->makeAddress($street,$city,$state,$postal,$country);
$wc->makeMaxDistance($milesDistance);
$wc->limitSearch($limit);
$status=$wc->doRequest(“findHotel”);
if($staus===false){
//get errors array
$status=$wc->error;

}

you can grab the xml2array class here:
http://www.phpclasses.org/browse/package/2938.html

you can grab the class here:
wctravel_connectorphp.txt

Code: Php Authorize.net AIM Class

16 Nov

Want to use authorize.net’s payment processing? your in luck so did I :)

The Authorize.net AIM Class is free and open source so enjoy.

Features : cc processing, test mode, and error details

the class will retain both a variable for the processed response and the raw response.

there’s some basic documentation in the file, i’ll work to add more documentation and check support as time permits.

authorize.net class
greg sidberry – nov 2007
elsid.net / halfgray.com
greg@halfgray.com

ver – 1.0.0.jj : first version

as always dedicated to most amazing woman in my world (jj)
love : zaya, sam, pops, josh

usage: do whatever you want with this, just don’t remove the top comment. If you modify this please send me a copy of the updated code (share it’s worth it). linkage is another way to show your thanx.

this class uses a portion of the following code

Micah Carrick – Authorize.net AIM Interface using CURL

get it : authorizeclass.txt

php paypal ipn class

14 Nov

came across this @ micah carrick’s site

This free PHP script provides a simple method to interface with paypal and the paypal Instant Payment Notification (IPN) system. It is not a complete system but a single PHP class allowing the PHP developer more control. Included in the zip file is a demonstration PHP script called paypal.php which shows the basic usage of the class.

check it out :
http://www.micahcarrick.com/04-19-2005/php-paypal-ipn-integration-class.html

authorize.net testing credit card numbers and urls

14 Nov

just an fyi for anyone testing authorize.net.

don’t use the test gateway. use the live gateway and pass the testing flag. any request to the testing url will always return a login error.

also heres some testing cc values – credit to Micah Carrick and his class.

4007000000027 – visa
370000000000002 – american express
6011000000000012 – discover
5424000000000015 – mastercard
4222222222222 – failure

good read: paypal payment processing

13 Nov

Alexandr Golovanov has a good write up on paypals payment service. It’s written in regards to .net, but has the foundation for any language.

Use of the PayPal payment system in ASP.NET – The Code Project – ASP.NET

Powered by ScribeFire.

google and ajax and music downloads = audio raider

12 Oct

sweet, i think i posted about a guide to using google to download music. anyways audio raider does all that heavy lifting for you, and filter out spam. it uses googles ajax service service to find directories with the music your looking for

check it out:
http://www.audioraider.com/

Powered by ScribeFire.

the best way to handle web service responses

30 Sep

I’m just wondering how other people like to handle responses from xml / web services.

I personally like to parse the response into and array, normally in the class containing the method calls. your two cents welcome.

Sid

wctravel

9 Sep

should have already posted this.

Short and sweet: xml web service for doing travel sales / bookings, etc using the travelocity engine. Their site sucks, but they’re actually pretty decent, I’ll post a tut whenever i get done with this project. Flights aren’t available through their xml service, but air, car,hotel, etc is avaible via the white label service

World Choice Travel’s affiliate program is the most friendly, popular and successful online travel program for affiliates. World Choice Travel welcomes affiliates from around the world who are serious about growing their online business and increasing profits. Our hotel and car booking engines feature your branding throughout the entire customer booking experience. Private branding, multiple languages and bonus revenue streams make us the most trusted and profitable travel affiliate program available today.

World Choice Travel makes it easy to create your own online travel agency. You will make commissions on air, car, hotel, cruise, vacation packages and Last Minute Deal reservations. This is an ideal business opportunity in the exciting world of online travel marketing.

If you’ve been working with other online travel companies and haven’t been satisfied, join thousands of other websites that have found a permanent home as World Choice Travel affiliates. We build traveler loyalty to your website, not ours.

World Choice Travel affiliates may create their own websites using both turnkey HTML or a flexible XML programming interface.

it's simple – a fun link to have

1 Sep

jetman posted a comment on my TRYNT post about some other password services. although this isn’t a web service i like it.

I have a random password generator here, but i’m not always on systems with flash. so it’s simple is a good tool to have, not to mention i used it’s nick name generator to get names for me and some friends when we went out : hi my name Borin Doompick – breaker of stuff, destroyer of things.

check it out : http://www.itsimpl.com/