PHP Classes


Recommend this page to a friend!

      PHP Corona Virus Database  >  All threads  >  Token  >  (Un) Subscribe thread alerts  
Author:Rodney Carbguif
Date:2020-03-28 20:06:39

  1. Token   Reply   Report abuse  
Picture of Rodney Carbguif Rodney Carbguif - 2020-03-28 20:06:39
Hi, I already update the source files to the server, created a database, import the output.sql but the website give me an error

status "failed"
message "You did not have access to this webservice without token!"

I am not programmer, I dont know nothing about php, just I am an enthusiastic, where add the Token? in the index.php


  2. Re: Token   Reply   Report abuse  
Picture of Max Base Max Base - 2020-03-28 21:17:58 - In reply to message 1 from Rodney Carbguif

This project is a web service that allows you to create different accesses.

And later use this web service in different applications and sites.
We may even sell a subscription to this web service.

All request of this web-service will need a token for Auth and access to methods.

There is a table for tokens, called `token`.
So you can create one token or more.

In `` file, I explain how can use from web service.

So others can using this key to access to this web-service.

You will need to execute `$ php _update.php update` in src/ directory to insert and updates data into your database, then you can use from API methods.
(You should pass token value in Headers)

Remember it's a API service, if are you looking for a script to display directly list of corona cases, you can check below repositories: ... ...

Max Base

  3. Re: Token   Reply   Report abuse  
Picture of Max Base Max Base - 2020-03-28 21:44:03 - In reply to message 1 from Rodney Carbguif
In addition of my message:

If you want to use this API web-service, And want to easily see response of methods.

You can use a plugins in your browser. such as: ...

You had to add `Token` header with a value.

Please follow Using section at ...

and Development Mode at: ...