Find Jobs
Hire Freelancers

Fix this code -

$10-30 AUD

Fullført
Lagt ut over 5 år siden

$10-30 AUD

Betalt ved levering
Read the file [login to view URL] (attached) the code is for an API, it is a form that retrieves information the user inputs and the code creates a POST request to an endpoint. The problem is the code needs to call for the latest access token. When the code attached gets accounts with code: // Getting accounts $params = [ CURLOPT_HEADER => false, CURLOPT_RETURNTRANSFER => true, CURLOPT_POST => true, CURLOPT_URL => $api_end_point.'connect/partner', CURLOPT_HTTPHEADER => [ 'Content-Type: application/x-www-form-urlencoded', ], CURLOPT_POSTFIELDS => 'response_type=accounts&client_id=y3tgh6qmhzhubhm5owin6znr4i&client_secret=ytvk2ttbnecebfbs4tbxr4rzuitdm5fhwbokmuxhiusnfdksoite&scope=partner_jobboard', ]; curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt_array($curl, $params); $resultAccs = curl_exec($curl); $resultAccs = json_decode($resultAccs); You need to get the access token after, which is the following code: <?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "[login to view URL]", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => "client_id= y3tgh6qmhzhubhm5owin6znr4i&client_secret= ytvk2ttbnecebfbs4tbxr4rzuitdm5fhwbokmuxhiusnfdksoite &grant_type=partner_actas&scope=partner_jobboard&actas={AN_ACCOUNT_FROM_ABOVE}", CURLOPT_HTTPHEADER => array( "Content-Type: application/x-www-form-urlencoded" ), )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; } You then plug the access token retrieve from this, to the POST request. The code is already done, all you have to do is put it in the right place and plug the result into the Access Token part. VERY EASY JOB. SO I know you have read this you need to start your proposal with Hello Anthony.
Prosjekt-ID: 17999562

Om prosjektet

3 forslag
Eksternt prosjekt
Aktiv 6 år siden

Ønsker du å tjene penger?

Fordeler med budgivning på Freelancer

Angi budsjettet og tidsrammen
Få betalt for arbeidet ditt
Skisser forslaget ditt
Det er gratis å registrere seg og by på jobber
Tildelt til:
Brukeravatar
Hello Anthony I think, I have a solution and it just needs to be tested. Can you contact me? If my code will work, we will start a project. If no, it will be free for you
$20 AUD om 1 dag
5,0 (1 omtale)
1,2
1,2
3 frilansere byr i gjennomsnitt $22 AUD for denne jobben
Brukeravatar
Hello Anthony I can handle it Thanks
$35 AUD om 1 dag
4,6 (149 omtaler)
6,4
6,4
Brukeravatar
Hi, Greeting of day. I being a WebExpert, with over 7 year's of experience in Web development (i.e, Symfony3, Symfony2, Symfony1,Laravel,Codeigniter, wordpress) I can assure you to provide 100% of quality work with delivery in time. As I am also familiar with the 3rd party extension integrations and other development works. moreover all my clients are satisfied with my service You will see just my reviews all client give me 5 start :)
$10 AUD om 1 dag
4,9 (68 omtaler)
5,3
5,3

Om klienten

AUSTRALIAs flagg
Sydney, Australia
5,0
24
Betalingsmetode bekreftet
Medlem siden okt. 5, 2015

Klientbekreftelse

Takk! Vi har sendt deg en lenke for at du skal kunne kreve din gratis kreditt.
Noe gikk galt. Vær så snill, prøv på nytt.
Registrerte brukere Publiserte jobber
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Forhåndsvisning innlasting
Tillatelse gitt for geolokalisering.
Påloggingsøkten din er utløpt og du har blitt logget ut. Logg på igjen.