It's need to make JS request to api, get the data and put it into the field.

Its need to make JS code to get the user points data via api and send it to the user chat.

The JS code example is here:

[login to view URL]

In our case the parameters will be:

- email;

- number.

And here is the PHP code for api request to get user points data:

global $current_user;

$pointsUrl = '[login to view URL]';

$pointsToken = -------token-------;

$phone = get_user_meta($current_user->id, 'billing_phone', true);

$phone = str_replace('+', '', $phone);

$response = wp_remote_get($pointsUrl . 'customers/search'

. '?access-token=' . $pointsToken

. '&telephone=' . $phone

. '&expand=points'


if (!wp_remote_retrieve_response_code($response) == 200) {



$customers = json_decode($response['body']);

if (count($customers) == 0) {



if (isset($customers[0]->points)) {

foreach ($customers[0]->points as $point) {

$response = wp_remote_get($pointsUrl . 'partnerships/' . $point->partnershipId

. '?access-token=' . $pointsToken


$partnership = json_decode($response['body']);


__( '<p>%3$s: %2$d баллов</p>', 'loyalty-info' ),






Beceriler: Javascript, HTML, PHP

Daha fazlasını gör: collect api data cgi script, google kind api data, french articles it`s translation, javascript fetch return data, how to send post request to rest api, rest api post example, fetch api post form data, get data from api javascript, how to use an api to get data, javascript fetch, javascript fetch example, amazon store api data, need programmer importtext file excel data base, need incoming friend request, amazon api data isbn, need incoming friends request myspace, need api data, i send money ur phone number wrongly i need it's arabic translation, research i need a good author to write my book it's about my life, Xml data extraction and form submission [11:29:51 AM] Madan Morris: It\ s the title please search

İşveren Hakkında:
( 9 değerlendirme ) Grodno, Belarus

Proje NO: #21345822

Bu iş için 15 freelancer ortalamada $25 teklif veriyor


Hello, how are you? Thank you for your project posting. Here is Eric, skilled with professional php and javascript. As a senior web developer I can deliver good results with quality in time you want. Please invite me s Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(41 Değerlendirme)

I can do this task. i have worked on many projects like this. ping me for more details and also check out my reviews. thanks

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(26 Değerlendirme)

Hi. I am very interesting in your job. I can do it perfectly. Let's discuss about project via chat. Thanks regards.

$20 USD in 7 gün içinde
(13 Değerlendirme)

Hi, what your code describes is get the phone number from the current_user and replace the "+" by "" check if there any customers with that phone number. if there are any customers with that phone number, get their par Daha Fazla

$40 USD in 7 gün içinde
(5 Değerlendirme)

Hi Greetings !! We can immediately start work. I am Sr. PHP Developer having over 10+ years of quality experience in designing & developing web applications using:- Programming Languages:- Core PHP 5 years, wordpre Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(39 Değerlendirme)

Hello Sir Hope you are doing great. ============================================ I am a senior web developer and have very good experience in wordpress( 5+ years). I have read your project description. I can do yo Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(11 Değerlendirme)

Hi I've read your need and I understood the requirement. I have good skills in web design and web development. If you hire me I'll do my best. I can start now immediately and I'll give you perfect result. Navil ------- Daha Fazla

$20 USD in 7 gün içinde
(5 Değerlendirme)

Hello.I have read your requirement carefully. I am a professional ⭐“ PHP & javascript expert” ⭐to have rich experience that make many site with mainly CI,Laravel ,HTML for 5+years. I have enough-time to develop it Daha Fazla

$50 USD in 4 gün içinde
(5 Değerlendirme)

Hello, I'm a full stack web developer and I know PHP & Javascriot very well. Contact me for more informations about your project.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(11 Değerlendirme)

Hello Sir, Hope you are doing well. I have 6+ years of working experience in UI and frontend framework and also worked with lots of international clients. So, I think I can help you out with this work. It can be done Daha Fazla

$25 USD in 2 gün içinde
(5 Değerlendirme)

Dear, Sir. Thank you for your job posting. I’ve read your project carefully just before. I’m ready to work for you right now. I have a broad knowledge web development and design such as HTML5, CSS3, responsive, codeig Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(2 Değerlendirme)

Hi, dear! I have read your description carefully and I am sure what you mean. I have expertise in php and javascript with 6 years of experience. I have done many projects in these fields, so I can provide you the per Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(1 Yorum)

Hi, I’m here to help you with your project I’ve excellent working skills, I can do complete your task in a professional manners, lets discuss more if you are interested, I will give you all information regarding your Daha Fazla

$20 USD in 7 gün içinde
(0 Değerlendirme)

Hi there, I saw your given project detail that you need to the JS request to api, get the data and put it into the field. ... I am expert designer having 6+ year of professional experience with web design and developm Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)

Hi..!! Greetings of the day..!! I am an Experienced Developer having much experience in this field. I can do it as well as can start work on it immediately. Kindly check your PMB for more details. Thanks Regards Daha Fazla

$20 USD in 3 gün içinde
(0 Değerlendirme)