Convert Javascript to PHP Code to get JSON Data from API

Fertiggestellt Veröffentlicht Feb 5, 2015 Bezahlt bei Lieferung
Fertiggestellt Bezahlt bei Lieferung

I am currently getting JSON data from an API. The data is being parsed with Javascript. Everything works the way it should with the JS code, but I need to retrieve the JSON data from the API on the server side in PHP. I need the current javascript variables to be PHP variables that I can call on the page to get the values I need in order to set the page title, META description and META keywords for each item.

There are 4 PHP files that display data and 1 PHP file with the "master" javascript that retrieves data from the API. These are the only files that should need to be modified.

I will provide the 5 PHP files with Javascript code in-lined and the API documentation. The JS code is commented and described in each file. Using the javascript method, everything is working perfectly except for the following:

- page title is being changed after page load (bad for SEO and indexing)

- need to create a META description tag using info from variables in the JSON data

- need to create a META keywords tag using info from variables in the JSON data

Since these variables need to be unique and come from the server side, using javascript to parse the API, while 100% working, is not really an option.

Retrieving the JSON data from API using PHP and then storing the current javascript variables as PHP variables should solve this issue.

HTML JavaScript jQuery / Prototype PHP

Projekt-ID: #7091775

Über das Projekt

28 Vorschläge Remote Projekt Aktiv Feb 5, 2015

Vergeben an:

simik

Hi! I can rewrite the API calls from javascript to PHP for you. I can do a sample page change and host it at my website so you can I see I can do the job. Send me the pages via chat, and I'll do it in a few hours.

$255 USD in 2 Tagen
(41 Bewertungen)
4.9

28 Freelancer bieten im Durchschnitt $480 für diesen Job

kchg

Hi, I am a top 7th full-stack freelancer. Please get in touch and discuss in detail. I can get started right now. Thanks. Sincerely!

$721 USD in 10 Tagen
(263 Bewertungen)
8.7
superior5

George here based from Los Angeles, USA. I am expert in desired skills for this project and have done similar tasks already. Please get back to me, so I can show you some of the work I have done.

$747 USD in 9 Tagen
(172 Bewertungen)
7.9
rinsadsl

Hi Good Day I have worked a lot with JSON data parsing with API. I clearly understand what you need. I can do it on a fair price. Looking forward to hear from you. Thanks Rinsad

$263 USD in 4 Tagen
(483 Bewertungen)
7.7
rajeshsonisl

Hello! With 99% completion rate, 750 successfully completed projects, and a 5.00 reputation (maximum possible, 5.0) (Yes, not even 4.99 average rating, can be verified on my profile page https://www.freelancer.com/u Mehr

$473 USD in 2 Tagen
(567 Bewertungen)
7.6
neoconcepts

expert api developer here. i can fetch jsaon api by php and do further processing. ready to start. thanks

$555 USD in 10 Tagen
(130 Bewertungen)
7.4
mituld

Hi I work towards providing reliable, relevant and robust IT solutions at most competitive prices to my customers. I ensure 100% customer satisfaction so lets start Thanks

$515 USD in 15 Tagen
(179 Bewertungen)
7.4
marchingantssl

Hi there, I’ve read your brief and I am really willing to work with you. I am just interested in more details that you might give about the project. We have enough experience to help you with this project, o Mehr

$368 USD in 11 Tagen
(139 Bewertungen)
7.1
programer218

Hello. I am a PHP developer. I can work for you. Please look my reviews and send me a message. Thank you.

$526 USD in 5 Tagen
(121 Bewertungen)
6.9
mobiletech1604

Hi there Thank you for posting this project. I could complete this project within 5 days. Looking forward to hear from you. Thanks & B/R

$722 USD in 7 Tagen
(22 Bewertungen)
5.9
anshangtai

Dear Sir. i am a skilled PHP expert having worked for 9 yrs. I reviewed your job requirement carefully then placed a bid. I have good technical experience in completing such jobs. I can convert javascript Mehr

$527 USD in 10 Tagen
(16 Bewertungen)
5.8
khoahuynhpro

Hello you! i can do it and finish 3 days. Please let me know.I looking forward on work your project. Thanks! Mr Khoa

$526 USD in 10 Tagen
(76 Bewertungen)
5.6
taskmanageryd

Hello, I am an expert and experienced Developer.. I am perfect developer for this JOB.. I have many many many times have done work on API .. expecting your quick and +ve reply.. Thanks

$250 USD in 3 Tagen
(63 Bewertungen)
5.2
Tiatechnologies

Hello , I have read your project requirement and i am having more the 6+ years of experience team for PHP, JS developers are here and we are comfortable to convert js to php code to get json data from api . could Mehr

$526 USD in 10 Tagen
(3 Bewertungen)
4.6
rockeykhan

Hi Sir I have read your project and ready to do this for you. I am a PHP developer kindly have a look at my profile for an idea of my work I will code this in 300$ and deliver it in 5 days kindly reply regards Ro Mehr

$300 USD in 5 Tagen
(9 Bewertungen)
4.5
Hana2015

A proposal has not yet been provided

$500 USD in 10 Tagen
(1 Bewertung)
3.9
kasianand

Hi, I have gone through your requirements and I can call the api from php, parse it and assign title and metadata. The response can be reused in javascript to avoid another api call from javascript. The only dra Mehr

$555 USD in 10 Tagen
(10 Bewertungen)
3.8
cinza

A proposal has not yet been provided

$250 USD in 3 Tagen
(10 Bewertungen)
3.7
phpdeveloper3

Hello, I can do it as you want. I am on mobile so can't write much but you can see my previous and ongoing projects for any clearance. Kindly contact for further discussion. Thanks skype: ashishzworld

$250 USD in 2 Tagen
(6 Bewertungen)
3.6
mangaldinesh

hello, I am very much excited to work with you. also if you will give me this opportunity I will be ready to work only for 150$. waiting for your positive response thanks, dinesh

$250 USD in 2 Tagen
(3 Bewertungen)
1.8
echoinnovate

Hello there, Hope all is well with you. I have gone through with your requirement and i am glad to let you know that we can certainly assist you in your requirement. We have developed many websites so far on Mehr

$526 USD in 10 Tagen
(0 Bewertungen)
0.0