Find Jobs
Hire Freelancers

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

$10-30 USD

Kapalı
İlan edilme: neredeyse 9 yıl önce

$10-30 USD

Teslimde ödenir
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
Proje No: 8284552

Proje hakkında

9 teklif
Uzaktan proje
Son aktiviteden bu yana geçen zaman 9 yıl önce

Biraz para mı kazanmak istiyorsunuz?

Freelancer'da teklif vermenin faydaları

Bütçenizi ve zaman çerçevenizi belirleyin
Çalışmanız için ödeme alın
Teklifinizin ana hatlarını belirleyin
Kaydolmak ve işlere teklif vermek ücretsizdir
9 freelancer bu proje için ortalama $77 USD teklif veriyor
Kullanıcı Avatarı
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 gün içinde
4,9 (701 değerlendirme)
8,2
8,2
Kullanıcı Avatarı
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 gün içinde
5,0 (111 değerlendirme)
7,3
7,3
Kullanıcı Avatarı
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 gün içinde
4,9 (152 değerlendirme)
6,8
6,8
Kullanıcı Avatarı
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 gün içinde
5,0 (62 değerlendirme)
6,4
6,4
Kullanıcı Avatarı
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 gün içinde
4,9 (20 değerlendirme)
4,1
4,1
Kullanıcı Avatarı
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 gün içinde
4,6 (27 değerlendirme)
4,1
4,1
Kullanıcı Avatarı
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 gün içinde
0,0 (0 değerlendirme)
0,0
0,0

Müşteri hakkında

   NIGERIA bayrağı
Sapele, Nigeria
4,9
10
Ödeme yöntemi onaylandı
Kas 6, 2014 tarihinden bu yana üye

Müşteri Doğrulaması

Teşekkürler! Ücretsiz kredinizi talep etmeniz için size bir bağlantı gönderdik.
E-postanız gönderilirken bir şeyler yanlış gitti. Lütfen tekrar deneyin.
Kayıtlı Kullanıcı İlan Edlien Toplam İş
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Ön izleme yükleniyor
Coğrafik konum için izin verildi.
Giriş oturumunuzun süresi doldu ve çıkış yaptınız. Lütfen tekrar giriş yapın.