Simple custom script that makes an API call and directs to a URL based on result of API call

Sedang Disiapkan Disiarkan 4 tahun lepas Dibayar semasa penghantaran
Sedang Disiapkan Dibayar semasa penghantaran

With this project, you will be using the Google My Business Private API

Requirements Of The Script You Write:

Write a script that will be placed on my webserver which is already setup and working, php is already installed on the server.

Retrieval of data, store data result on server and redirect user to a URL based on data result.

Use OAuth 2.0 (you will be provided with a [login to view URL] file which is already granted access to the API we will be using)

This is to be securely stored on my server and put in place by you for the script written to access for each API request.

I want as much written server side possible and to remain private.

Here is what the script must do when a request:

Example: [login to view URL] (will run [login to view URL])

Script check the last time it called the API in minutes, if it has been less than 120 minutes. The script will not call the API again.

If it has been greater than 120 minutes, the script will make a fresh API call and update the data file.

If a fresh API call is needed, the script Make a fresh GET request to the API

The API will query for 3 fields, each field will return a numerical number as low as 0 and as high as 99999

The script stores this data in a datafile you create on the server along with a date & time stamp it last called the api. Data file is to be stored in a secure folder on the server not accessible from www.

The data file will contain each number it got from the API, example

Result1=7, Result2=3, Result3=9,

Based on result, it will redirect the user to a URL of my choice. In my case, whichever is the lowest number. So in this example, result 2 is the lowest number so it would redirect the user to ResultURL2. In the even the numbers return the same the computer may randomly pick one or whatever is first in the list. It really doesn’t matter

End Script

You must include the following in the data file:

LastApiCallDate=10-10-2019

LastApiCallTime=01:07 PM CDT

Minutestowait=120

ResultURL1=[login to view URL]

ResultURL2=[login to view URL]

ResultURL3=[login to view URL]

PHP Kejuruteraan Perisian JavaScript MySQL HTML

ID Projek: #21930010

Tentang projek

16 cadangan Projek jarak jauh Aktif 4 tahun lepas

16 pekerja bebas membida secara purata $195 untuk pekerjaan ini

luiswilliam

Hi, Dustin D.! I read the description of your project thoroughly. I understand your requirements initially and I have experiences of the field. I am a specialist of: * React.js, Angular for Front-end, * .NET Core AP Lagi

$140 USD dalam 2 hari
(91 Ulasan)
7.0
yuriyes43

Dear Sir! I’d like to describe myself as someone who is versatile and determined and someone who loves learning. I am creative, open-minded and easy going and I enjoy working with others. And I tried to use all these q Lagi

$150 USD dalam sehari
(109 Ulasan)
7.1
TeamDPS

hi sir am ready to do that for you . myself 7 years experienced web developer having good knowledge of API calling. for assurance if quality work check my reviews. ping me for more discussion

$120 USD dalam 2 hari
(150 Ulasan)
6.0
risharde

Dear Sir/Madam, I am an application developer with over 10 years of coding experience. I have read your requirements and can provide such a script that will deliver your requirements. I am also a full stack developer w Lagi

$110 USD dalam 3 hari
(26 Ulasan)
5.5
BestService222

⭐ Dear Client. ⭐ How are you? I'm a senior web&app developer with over 8 years of experience and very strong in this field. If you want to work with me, I am sure I can deliver you a wonderful result as you want. Plea Lagi

$140 USD dalam 7 hari
(34 Ulasan)
5.7
PageOllice

Greetings, My name is Page and I have been working from last 8 years in IT field. I am very much interested in your project and would like to invite you for further discussion over chat board. Waiting for your positi Lagi

$200 USD dalam 7 hari
(20 Ulasan)
5.3
mihail99999

*****_ Hello Dustin D. _***** How are you ? https://www.freelancer.com/u/mihail99999?w=f I have read your detail very carefully and understood what you want. I am very familiar PHP and using api. I have checked your Lagi

$150 USD dalam 3 hari
(8 Ulasan)
3.9
nitinwebtech

I am an experienced mobile app and Website developer with 7+ year experience. I have made a lot of excellent apps and published on Google Play Store and App Store. I specialize in: - GPS tracking and all kind of Maps Lagi

$300 USD dalam 7 hari
(5 Ulasan)
3.0