PHP Classes

Token

Recommend this page to a friend!

      PHP Corona Virus Database  >  All threads  >  Token  >  (Un) Subscribe thread alerts  
Subject:Token
Summary:Help
Messages:3
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

Thanks

  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
Hello,

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 `READMD.me` 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:

github.com/BaseMax/api-webservice-C ...

github.com/BaseMax/CoronaVirusOutbr ...

Regards,
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:
chrome.google.com/webstore/detail/m ...

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

Please follow Using section at
github.com/BaseMax/CoronaVirusDatab ...

and Development Mode at:
github.com/BaseMax/CoronaVirusDatab ...