tracking status parser: USPS

Đã Hủy Đã đăng vào Nov 20, 2009 Thanh toán khi bàn giao
Đã Hủy Thanh toán khi bàn giao

See below.

## Deliverables

I will be selected two coders/bidders. Both of you will do the same job, and both of you will check each others work. This guarantees completion and testing from another developer. The job: I have a class that looks like this: $USPS = new USPS_STATUS (); $TrackingNumbers = array ( array ( "tracking_number" => "822h34k2j34234" ), array ( "tracking_number" => "822h34k2j34235" ), array ( "tracking_number" => "822h34k2j34236" ), array ( "tracking_number" => "822h34k2j34237" ) ); $USPS -> SetTracking($TrackingNumbers); $USPS -> UpdateTracking(); //runs some background requests to USPS and parses the data $Results = $USPS -> GetTrackingResults(); var_dump ($Results); What do you need to do? You need to write the parser function, into which I will pass the returned HTML data from USPS from here You will return ALL the steps, and all possible information using REGULAR EXPRESSIONS, the function will return an ARRAY of all the status information about the INDIVIDUAL tracking number. I will LOOP through all the tracking numbers and call that function, and that function (yours) will return all known information about the tracking number (in English) To recap, you are writing a single function, into which HTML data is passed, out of which you will return a single array, with the tracking number as the KEY, with subkeys of all the information about the tracking number. The var_dump($Results) should output this (but with real values, one entry per tracking number, with tracking number as the array key. ["tracking_number_as_key"]=> string(0) "" ["signed_for_by"]=> string(0) "" ["ship_date"]=> string(0) "" ["delivery_date"]=> string(0) "" ["reference"]=> string(0) "" ["purchase_order_number"]=> string(0) "" ["shipment_id"]=> string(0) "" ["invoice_number"]=> string(0) "" ["destination"]=> string(0) "" ["service_type"]=> string(0) "" ["weight"]=> string(0) "" ["status"]=> string(0) "" ["steps"]=> array(0) { } 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):

a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).

64bit linux, php5 < 5.1, no special plugins, regex only.

## Platform

64bit linux, php5 < 5.1, no special plugins, regex only.

PHP

ID dự án: #2980749

Về dự án

1 đề xuất Dự án từ xa Nov 20, 2009 đang mở

1 freelancer đang chào giá trung bình $64 cho công việc này

phppro1

See private message.

$63.75 USD trong 1 ngày
(0 Nhận xét)
0.8