Tag Archives: jj

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

MySpace Access Class – June 1st – Ver. JJ

20 Jun

The Myspace Access Class has been updated, it is still in .alpha Ver. JJ

Please review the features list for new features.

Also if interested in having automation functions included in the Myspace Access Class please review the following message and leave a comment.
http://elsid.net/2007/05/26/myspace-class-automation-functions/
————-

I’m no longer keeping version numbers, because basically you wanta get the latest version. Once the class reaches a stable / complete version i’ll begin with version numbers again. Until then every release will be version jj, in dedication to the most amazing woman i know:),
and should be considered alpha . If you’d like to know when a new version is out – subscribe.

Project Page

This will be the permanent page for this project from now on.
http://elsid.net/myspace-access-class/

What is the MySpace Access Class?
The access class is a php4 class to allow anyone to access myspace remotely. It is not a proxy service.

Requirements?
php4 (havn’t tested with php5), curl

Demo : http://myspacedemo.elsid.net

File : http://elsid.net/wp-content/uploads/2007/05/myspace.class.ver.2.txt

Features

  • php errors redirected to class error handling
  • documentation started
  • samples and examples including
  • captha detection
  • blog posting
  • comment posting
  • friendslist navigation
  • myspace navigation
  • music player extraction
  • functions to pull data from user page
  • error support
  • friend adding
  • settings for debugging mode, error displaying and recovery
  • logs out of myspace at close
  • functions for collecting hashes, hidden fields, etc.
  • url tokens are automatically extracted / included
  • bulletin posting

Who makes this?

Primary Developer :
Myself – Greg Sidberry – poetics5 [ at ] yahoo.com

Contributers :
Brad Turcotte – brad [at] bradsucks.net
initial development, feedback, getMyspaceFriends()

FB ( still no idea what his name is) – thegreatfb [ at ] gmail.com
extractText(), extractMyspacePlayer()

Contributing

I love it when other people make functions, keeps me from having to. If your trying to write a function and it doesn’t work – contact me.

Please send any code as a php file. I try to fix any broken functions that are sent to me, and include or update all functions sent to me.

Common Questions

is this an extension? no this is a php4 class. It will work with wordpress, drupal, pretty much anything running php.

whats new? friend requests, bullentin posting

do you plan on ever fixing your site? one day

Do you offer support? yeap, actually about 4 of the functions in the class come from people trying to make new functions and contacting me for help.

i’m adding a function, do i need to let you know? yeap, send it over so i can add it.

why are you so damn sexy? genetics

will you always offer support? yeap, as long as there is a page there is support

umm i’d like to hire you. :) yippie money, you can contact me directly at poetics5 [ at ] yahoo.com, or contact the guys that feed me http://designisfuel.com

why are you writing a class you don’t even use? i like to help my friends, and by friends i mean people i don’t know.

i’d like to give you money! yippie paypal greg [ at ] sidneyblack.net

umm i can’t make this work? see the support question, i’d say rtfm – but there isn’t one.

Licensing, usage, and restrictions

If you use this in a commercial project – please make a donation.
If you add a function – Send it to me.
Do Not Use This Class To Spam!!!!

Other than that I love linkage love, comments, and suggestions…

This Class is provided as is, and is in a constant state of development. all versions are released as alpha.

Future Tasks

I’d like to put together proper documentation for this project, svn access, and trac.

Development

If you’d like to contribute, or would like to help with the development process please contact me.

at the moment this project has an ActiveCollab area setup for potential developers.

Access Class : ver jj – june 18 2007

18 Jun

After much delay i’m releasing an updated version of the Access Class. This version is released as is.

After trying to play catch up with myspace i’ve chosen to rewrite the entire class. this should hopefully allow for a better application. this version was released on june 18, 2007, and is the last version to be released before the rewrite.

You’ll notice this version includes what is the start of documentation. from this date forward i’ll include the entire documentation site as part of the zip.

Project Page

This will be the permanent page for this project from now on.
http://elsid.net/myspace-access-class/

What is the MySpace Access Class?
The access class is a php4 class to allow anyone to access myspace remotely. It is not a proxy service.

Requirements?
php4 (haven’t tested with php5), curl

Demo / Documentation : http://myspacedemo.elsid.net

File : http://myspacedemo.elsid.net/accessClass.zip

Features

* blog posting
* comment posting
* friendslist navigation
* myspace navigation
* music player extraction
* functions to pull data from user page
* error support (includes php errors)
* friend adding
* settings for debugging mode, error displaying and recovery
* logs out of myspace at close
* functions for collecting hashes, hidden fields, etc.
* url tokens are automatically extracted / included
* captha functions (needs testing)
* bulletin posting

MySpace Access Class – next release delayed

3 Jun

Sorry to say the next release of the MySpace Access Class has been delayed, but for good reason, there have been alot of feature and documentation requests. so i’m working on putting together a demo site that proves both demos and documentation. as well as trying to comlete a few last minute features.

for those wondering. as of last night i have a captha bypass function. not a full bypass. it detects if captha has been reached and will display if so, and will post that back to the proper page when done. it’s down and dirty, and i’ve only tested it with a copy of the captha page (i seriously never hit capthas at myspace – no clue why).

that said i’m also including the search function as is, does it work? yes. does it timeout while navigating? yeap, to work around this i’m adding a limit until i get around to cleaning it up. for now it works but i’d say leave the limit alone until i fix it.

whats the next major change? I’ve been toying with putting a backend to this thing, Mysql of course. but i won’t make everyone wait till thats done.

that said it’ll be a few more days, but i think it’s worth it.

as always send in broken functions, helps me make the working ones that you want

Enjoy , sid

MySpace Class – automation functions

26 May

the team (me and ryan) have made some functions, but are kinda of war on if we should release them.

right now the functions are already made for batch friend requests, batch seraching, etc. more and more of you have expressed a need for them, my only concern is spamming. I myself am on the fence if these functions should be released, or only used in the private developers version of the class.

this is where all of you come in. if enough you tell me why the functions are needed i’ll include them. you can either leave comments or contact me. the next release is next week, and if their not in that version you probably won’t see them for awhile.

-sid

MySpace Class – ver jj / next release

26 May

The myspace class is still in alpha (ver jj ) . next week i’ll be putting together the lastest release, which should feature bulletin support, automatic sending of major errors to me, searching, better error support (captha detection), and the start of anything remotely resembling documentation.

oh yeah an i’ve added a debug setting so you can view data etc while debugging and turn it off in production.

also i have a new co-developer for this version (hopefully for more).

Thank you to everyone that’s provided their broken functions (most should be included working) and feedback.

If you contacted about helping out with the project i will be contacting you next week after the release (been swamped).

sid

pissy mood

23 May

no clue why, but i’m havingone of those days when you really just wanta yell at somebody. today might have been a good day to be near a marine base – lol.

i almost told a client to tell their staff to RTFM. good thing i read everything twice with clients.

that said american idol has it’s final tonight, but the wedding date was on, so of course i had something to watch. strange today was a good day. finally saw blades of glory, condemned, black snake moan, and watching shooter right now (net was down all day).

actually in retro i think it was american idol that pissed me off (go figure). good thing i never watch it. JJ loves it, so of course we had to watch it.

i guess i’ll stop my rant here before i ramble on… to late

sid

actually i think maybe red5 helped this mood, nothing sucks more than watching one by one as an app that ran ok kills 4 different browsers during the .alpha demo to the client, but hey it’s alpha and they’re happy so whatever.

ok for real this time – sid out

MySpace Access Class

1 May

Please review the following message if you use this class or interested in the access class :
http://elsid.net/2007/05/26/myspace-class-automation-functions/
————-

I’m no longer keeping version numbers, because basically you wanta get the latest version. Once the class reaches a stable / complete version i’ll begin with version numbers again. Until then every release will be version jj, in dedication to the most amazing woman i know:),
and should be considered alpha . If you’d like to know when a new version is out – subscribe.

Project Page

This will be the permanent page for this project from now on.
http://elsid.net/myspace-access-class/

What is the MySpace Access Class?
The access class is a php4 class to allow anyone to access myspace remotely. It is not a proxy service.

Requirements?
php4 (havn’t tested with php5), curl

Demo : http://myspacedemo.elsid.net

File : http://elsid.net/wp-content/uploads/2007/05/myspace.class.ver.2.txt

Features

  • blog posting
  • comment posting
  • friendslist navigation
  • myspace navigation
  • music player extraction
  • functions to pull data from user page
  • error support
  • friend adding
  • settings for debugging mode, error displaying and recovery
  • logs out of myspace at close
  • functions for collecting hashes, hidden fields, etc.
  • url tokens are automatically extracted / included
  • bulletin posting

Who makes this?

Primary Developer :
Myself – Greg Sidberry – poetics5 [ at ] yahoo.com

Contributers :
Brad Turcotte – brad [at] bradsucks.net
initial development, feedback, getMyspaceFriends()

FB ( still no idea what his name is) – thegreatfb [ at ] gmail.com
extractText(), extractMyspacePlayer()

Contributing

I love it when other people make functions, keeps me from having to. If your trying to write a function and it doesn’t work – contact me.

Please send any code as a php file. I try to fix any broken functions that are sent to me, and include or update all functions sent to me.

Common Questions

is this an extension? no this is a php4 class. It will work with wordpress, drupal, pretty much anything running php.

whats new? friend requests, bullentin posting

do you plan on ever fixing your site? one day

Do you offer support? yeap, actually about 4 of the functions in the class come from people trying to make new functions and contacting me for help.

i’m adding a function, do i need to let you know? yeap, send it over so i can add it.

why are you so damn sexy? genetics

will you always offer support? yeap, as long as there is a page there is support

umm i’d like to hire you. :) yippie money, you can contact me directly at poetics5 [ at ] yahoo.com, or contact the guys that feed me http://designisfuel.com

why are you writing a class you don’t even use? i like to help my friends, and by friends i mean people i don’t know.

i’d like to give you money! yippie paypal greg [ at ] sidneyblack.net

umm i can’t make this work? see the support question, i’d say rtfm – but there isn’t one.

Licensing, usage, and restrictions

If you use this in a commercial project – please make a donation.
If you add a function – Send it to me.
Do Not Use This Class To Spam!!!!

Other than that I love linkage love, comments, and suggestions…

This Class is provided as is, and is in a constant state of development. all versions are released as alpha.

Future Tasks

I’d like to put together proper documentation for this project, svn access, and trac.

Development

If you’d like to contribute, or would like to help with the development process please contact me.

at the moment this project has an ActiveCollab area setup for potential developers.