Setup of yotpo API in website admin of e-com website

Fermé

Description

The yotpo api requires authentication through a json request and then needs to be set to send the order details to yotpo when the customers order status is changed to "shipped" order status id = 3

The yotpo documentation can be found here:

[url removed, login to view]

This is for a "general" platform as we are using oscommerce currently.

I have already created the authentication file and it works and returns the user token.

When needs to be done is:

set the oscommerce admin/[url removed, login to view] to "create an order" using the yotpo api (see section [url removed, login to view]) when the order status is changed to shipped.

The order details (email, productid, customer name etc all need to be sent to yotpo through this same api call

I attached the [url removed, login to view] page. line 76 I believe is where the order must be created.

I also have the [url removed, login to view] file I created that looks like this:

<?php

$yotpo_keys = array(

"client_id"=> "myid",

"client_secret"=> "mysecret",

"grant_type"=> "client_credentials"

);

$ch = curl_init( "[url removed, login to view]" );

# Setup request to send json via POST.

$payload = json_encode( $yotpo_keys );

curl_setopt( $ch, CURLOPT_POSTFIELDS, $payload );

curl_setopt( $ch, CURLOPT_HTTPHEADER, array('Content-Type:application/json'));

# Return response instead of printing.

curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );

# Send request.

$result = curl_exec($ch);

curl_close($ch);

# Print response.

$yotpo_token_array = json_decode($result, true);

echo $yotpo_token_array[access_token];

?>

The access token is echo'd at the end of that file but needs to be brought into the request on the orders page.

Compétences : JSON, PHP

Voir plus : top indian e com website devloper, cheap e com website developers mumbai, api myspace com sign, need com website, setup online radio station website, setup live streaming video website, php admin database setup, setup ftp upload area website, com website, google api real estate website, use google api real estate website, need setup mail server mails website, setup program using com, api pull number website, api ebay com getitem

N° du projet : #14062393

Décerné à :

tomvnphp

Hi, I have more than 8 years experience in Oscommerce. I have checked Yotpo API and your order.php file. i can help you to do this job today. Thanks

45 $ USD en 1 jour
(295 Commentaires)
7.8

8 freelance ont fait une offre moyenne de 134 $ pour ce travail

techwelfare

Hi Let's clarify the requirement in details also if you want us to share our previous work let us know.we have a few questions about your project, please send us message so that we can discuss more. Thanks & regar Plus

250 $ USD en 10 jours
(123 Commentaires)
6.8
RubyOnRail

Hello, I want to show you all relevant Demo and Designs which is similar to your project completed previously. To make sure about the requirement set and customizations, I want to discuss this project with you further Plus

555 $ USD en 10 jours
(9 Commentaires)
5.7
avi2105

Hi, Hope you doing good? I am experienced PHP developer having expertise in e-commerce domain using Zen Cart, Wordpress, Codeigniter, OsCommerce, CreLoaded, MVC framework, Prestashop, Opencart, HTML5, Bootstrap, Plus

70 $ USD en 1 jour
(46 Commentaires)
5.0
satyajeetkeshari

Hello , Warm Greetings If looking for a good experienced web developer, then your are on right place. Development is my skill & passion. I am having more that 9 years experienced in web development of corpor Plus

20 $ USD en 1 jour
(23 Commentaires)
3.7
techfinity3

Dear Prospect Hiring Manager. Thank you for giving me a chance to bid on your project. I am a serious bidder here and i have already worked on a similar project before and can deliver as u have mentioned I have c Plus

28 $ USD en 6 jours
(1 Commentaire)
2.6
black92

Hi,can i help you?I am a web designer and web program .. i have been doing web projects for several times, entrust your project to me, i will finish it in quick time and accordingly ... please see my reviews there to s Plus

30 $ USD en 2 jours
(4 Commentaires)
2.4
mzjilani786

I am 6+ years experienced PHP developer, I am able to work in Core PHP, PHP MVC Frameworks, PHP based CMS like wordpress , durpal7/drupal8 etc. and PHP Based Shop fronts. So i will be able to take a look and sort out y Plus

77 $ USD en 3 jours
(0 Commentaires)
0.0