Find Jobs
Hire Freelancers

WRITE A CODE IN WEBSERVICE TO EXTRACT INFO FROM DATABASE AND OUTPUT RESULT (JSON)

$10-30 USD

Lezárt
Kiadva ekkor: majdnem 9 évvel ezelőtt

$10-30 USD

Teljesítéskor fizetve
I have a table as attached. I want to attract data from the table using "curl" and output should be in "Json" once some criteria is met. You will design the page / code; user will connect to this page using curl from their applications. They will also provide some information along when they call the page. The page should send back two different messages (successful) and (fail) based on value from the database. This is a sample way the user should query the page: <?php $ref=$_POST['tx_ref']; $clientId = "localhost"; $secretKey = "E9300DJLXKJLQJ2993N1190023"; // perform sha512 hash $hashValue = hash('sha512',($ref.$secretKey)); // webservice url remember to add the saved transaction reference variable $url ="[login to view URL]$ref"; // append the header putting the secret key and hash $headers = array( "GET /HTTP/1.1", "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1", "Content-type: text/xml;charset=\"utf-8\"", "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Language: en-us,en;q=0.5", "Accept-Encoding: gzip,deflate", "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7", "Keep-Alive: 300", "Connection: keep-alive", "clientid: $clientId", "Hash: $hashValue" ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 60); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); $data = curl_exec($ch); if (curl_errno($ch)) { print "Error: " . curl_error($ch); } else { // Show me the result $json = json_decode($data, TRUE); //var_dump($data); curl_close($ch); //print_r($json); // you can perform simple if else to interpret the printed json result in your UI // bye bye } // data from gateway after feed back $gatewayResponseCode = $json['ResponseCode']; // ignored in form data $gatewayResponseDescription = $json['ResponseDescription']; // ignored in form data $gatewayPaymentReference = $json['PaymentReference']; // ignored in form data $gatewayAmount = $json['Amount']; $gatewayTransactionDate = $json['TransactionDate']; $gatewayCustomerId = $json['CustomerId']; // data from gateway before feedback $gatereference = $form->data['ref']; // used in form data $gatedescription = $form->data['resp_desc']; // used in form data $gaterespcode = $form->data['resp_code']; // used in form data
Projektazonosító: 8284552

A projektről

9 ajánlat
Távolról teljesíthető projekt
Aktiválva: 9 évvel ezelőtt

Szeretne pénzt keresni?

A Freelancer oldalán történő árajánlatadás előnyei

Határozzon meg költségvetést és időkeretet
Kapja meg fizetését a munkáért
Vázolja ajánlatát
Ingyen regisztrálhat és adhat árajánlatot munkákra
9 szabadúszó adott átlagosan $77 USD összegű árajánlatot erre a munkára
Felhasználó avatár
I have read your project details, and I am interested in offering my services. I provide 100% satisfaction guaranteed on all my work. Milestone is required to begin; to be released when the job has been satisfactorily completed. I estimate a 24hr turnaround (including weekends) on this project. ftp details to your server will be required. Contact me at your soonest convenience so we may get your solution delivered quickly. Thanks, coderXO
$70 USD 1 napon belül
4,9 (701 értékelés)
8,2
8,2
Felhasználó avatár
Hello, This web page which you have attached is owned by you or its a public HTTP URL ? Also this is direct page or its password protected? Thanks
$44 USD 1 napon belül
5,0 (111 értékelés)
7,3
7,3
Felhasználó avatár
Hi sir, I am scraping expert, I have did too many similar projects, please check my feedback then you will know. Can you tell me more details? then I will provide demo data for you. Thanks, Kimi
$120 USD 3 napon belül
4,9 (152 értékelés)
6,8
6,8
Felhasználó avatár
Hello, sir. I am a expert PHP and ajax developer. if you give me a chance, I will do best for you. Thank you!
$54 USD 1 napon belül
5,0 (62 értékelés)
6,4
6,4
Felhasználó avatár
Hi, Is the table is mysql table? I can code the json response after make query to sql and return in json format. Basri
$30 USD 1 napon belül
4,9 (20 értékelés)
4,1
4,1
Felhasználó avatár
I am ready to work o your task , as per the given requirement , please message me i am available 24/7 online Thak you
$24 USD 1 napon belül
4,6 (27 értékelés)
4,1
4,1
Felhasználó avatár
Hello. I can build this for you today. I'd write a php script that would query the database and assembly the query output to json. you could then get that output using curl from another php script.
$111 USD 1 napon belül
0,0 (0 értékelés)
0,0
0,0

Az ügyfélről

NIGERIA zászlója
Sapele, Nigeria
4,9
10
Fizetési mód hitelesítve
Tagság kezdete: nov. 6, 2014

Ügyfél-hitelesítés

Köszönjük! E-mailben elküldtük a linket, melyen átveheti ajándék egyenlegét.
E-mailje elküldése során valami hiba történt. Kérjük, próbálja újra.
Regisztrált Felhasználók Összes Közzétett Munka
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Előnézet betöltése
Hozzáférést adott a helymeghatározáshoz.
Belépési munkamenete lejárt, és kijelentkeztettük. Kérjük, lépjen be újra.