17. How to Implement a PHP Google Drive List Files Script
Updated on: 2024-03-19
Posted on: 2024-03-19
Google Drive is a very popular file storage application that many people use to store their files on a site they can access from anywhere they have a computer, tablet, or mobile phone with an Internet connection.
Developers can make Google Drive more valuable by integrating its API with other applications that need to store user files on an Internet-accessible service like Google Drive.
Please read this short tutorial to learn how to integrate PHP applications with Google Drive, using its API and the PHP OAuth client to list files stored in a Google Drive account.
More ... Post a comment See comments (0) Trackbacks (0)
Developers can make Google Drive more valuable by integrating its API with other applications that need to store user files on an Internet-accessible service like Google Drive.
Please read this short tutorial to learn how to integrate PHP applications with Google Drive, using its API and the PHP OAuth client to list files stored in a Google Drive account.
More ... Post a comment See comments (0) Trackbacks (0)
16. How to Implement a PHP Google Sheets Access Solution Without Using Google Libraries
Updated on: 2024-03-05
Posted on: 2024-03-05
Google Sheets is a viral tool used to create and edit spreadsheets.
Google provides an API to access spreadsheets created with Google Sheets.
Read this short introduction tutorial to learn how to access a spreadsheet using Google Sheets API via OAuth without using Google libraries.
More ... Post a comment See comments (0) Trackbacks (0)
Google provides an API to access spreadsheets created with Google Sheets.
Read this short introduction tutorial to learn how to access a spreadsheet using Google Sheets API via OAuth without using Google libraries.
More ... Post a comment See comments (0) Trackbacks (0)
15. How to Implement PHP Sentiment Analysis Using Google Artificial Intelligence API to Process Natural Language Text
Updated on: 2024-01-10
Posted on: 2024-01-10
The evolution of artificial intelligence allowed the implementation of more advanced solutions for complex problems like, for instance, the interpretation of human language.
One type of interpretation of human language is the analysis of sentiments expressed by people when they send text messages.
Read this step-by-step tutorial article to learn, for example, PHP code and how to use Google Cloud Natural Language API to analyze human sentiments using text messages from PHP.
More ... Post a comment See comments (0) Trackbacks (0)
One type of interpretation of human language is the analysis of sentiments expressed by people when they send text messages.
Read this step-by-step tutorial article to learn, for example, PHP code and how to use Google Cloud Natural Language API to analyze human sentiments using text messages from PHP.
More ... Post a comment See comments (0) Trackbacks (0)
14. Learn with a PHP OAuth2 Example Google API Access From the Console
Updated on: 2023-11-01
Posted on: 2023-11-01
Some applications need to access APIs from the console to perform background tasks using, for instance, the crontab available in Linux-based systems to execute jobs at scheduled times.
Read this article to learn how to develop PHP scripts that can get OAuth2-based tokens to access a Google API from the console or as a task executed by corn.
OAuth is a protocol often used to access API on behalf of a user that grants permissions to access the services of an API on behalf of that user.
This allows applications to call APIs even when the user is not present accessing a Web page.
This is possible because the OAuth protocol can be used by Web services to provide token string values that applications can use to access the APIs whenever they want, using a token string as evidence that the user granted permission to access the APIs anytime the application runs.
So, what applications need to do to access an API from a console or a task started with the cron tool is to obtain that token string.
That needs to happen with the presence of the user. The user needs to go to a page of the application. There, the user browser is redirected to a page of the API service provided. The user is requested to permit the application to perform specific actions by calling the API.
[OAuth permission request page image]
After the user provides the requested permissions, the user's browser is redirected back to the application page. Then, the application calls the API following the OAuth protocol to retrieve the access token.
[OAuth application page showing the access token image]
From now on, the application can use the access token to perform API calls to which the user gave permission.
More ... Post a comment See comments (0) Trackbacks (0)
Read this article to learn how to develop PHP scripts that can get OAuth2-based tokens to access a Google API from the console or as a task executed by corn.
OAuth is a protocol often used to access API on behalf of a user that grants permissions to access the services of an API on behalf of that user.
This allows applications to call APIs even when the user is not present accessing a Web page.
This is possible because the OAuth protocol can be used by Web services to provide token string values that applications can use to access the APIs whenever they want, using a token string as evidence that the user granted permission to access the APIs anytime the application runs.
So, what applications need to do to access an API from a console or a task started with the cron tool is to obtain that token string.
That needs to happen with the presence of the user. The user needs to go to a page of the application. There, the user browser is redirected to a page of the API service provided. The user is requested to permit the application to perform specific actions by calling the API.
[OAuth permission request page image]
After the user provides the requested permissions, the user's browser is redirected back to the application page. Then, the application calls the API following the OAuth protocol to retrieve the access token.
[OAuth application page showing the access token image]
From now on, the application can use the access token to perform API calls to which the user gave permission.
More ... Post a comment See comments (0) Trackbacks (0)
13. How Can the PHP OAuth Client Class Support New OAuth Servers
Updated on: 2022-02-17
Posted on: 2021-03-26
OAuth is a flexible protocol that allows accessing APIs on behalf of users of a given service.
Despite OAuth is a standard, accessing a new OAuth server requires to create custom code to access the respective API or configure a generic OAuth client like this PHP OAuth client class to adapt its behaviour to access OAuth server using specific configuration values.
Read this article to learn how to support a new OAuth server just by adding a few lines to the JSON configuration file that this PHP OAuth client users.
More ... Post a comment See comments (0) Trackbacks (0)
Despite OAuth is a standard, accessing a new OAuth server requires to create custom code to access the respective API or configure a generic OAuth client like this PHP OAuth client class to adapt its behaviour to access OAuth server using specific configuration values.
Read this article to learn how to support a new OAuth server just by adding a few lines to the JSON configuration file that this PHP OAuth client users.
More ... Post a comment See comments (0) Trackbacks (0)
12. Faster PHP Social Login with a PHP OpenID Connect PHP Client
Updated on: 2017-04-09
Posted on: 2017-03-21
Many applications use OAuth authenticate users using their information retrieved from social network accounts with their permission.
However, each social network requires an additional API call to retrieve those user details. That API call is specific to each network, so its URL and parameters vary.
OpenID Connect is an extension of the OAuth2 protocol that allows to retrieve the user details without additional API calls.
Read this article to learn how it works and how you can benefit from OpenID Connect to get the user details faster without social network specific API calls.
More ... Post a comment See comments (2) Trackbacks (0)
However, each social network requires an additional API call to retrieve those user details. That API call is specific to each network, so its URL and parameters vary.
OpenID Connect is an extension of the OAuth2 protocol that allows to retrieve the user details without additional API calls.
Read this article to learn how it works and how you can benefit from OpenID Connect to get the user details faster without social network specific API calls.
More ... Post a comment See comments (2) Trackbacks (0)
11. Improving the Protection of your PHP OAuth Client Application Against User Account Leaks
Updated on: 2016-09-19
Posted on: 2016-09-19
When your application needs to call an API with tokens obtained using OAuth, if your application OAuth credentials are stolen, it becomes a security problem that may cause you big headaches.
Read this tutorial to learn about good security practices to minimize the possible damages to your application if your developer user account details in the API site get stolen.
More ... Post a comment See comments (0) Trackbacks (0)
Read this tutorial to learn about good security practices to minimize the possible damages to your application if your developer user account details in the API site get stolen.
More ... Post a comment See comments (0) Trackbacks (0)
10. Is Your PHP Application Vulnerable to the HTTPoxy Security Exploit?
Updated on: 2016-07-21
Posted on: 2016-07-21
Recently it was disclosed a security vulnerability called HTTPoxy in Web applications of different languages can be used to perform serious man-in-the-middle attacks (MITM) and disclose sensitive information.
Read this article to learn what is the HTTPoxy vulnerability and how to check if your Web applications are vulnerable.
More ... Post a comment See comments (2) Trackbacks (0)
Read this article to learn what is the HTTPoxy vulnerability and how to check if your Web applications are vulnerable.
More ... Post a comment See comments (2) Trackbacks (0)
9. Get Twitter Direct Message Images in PHP with the OAuth API
Updated on: 2015-12-10
Posted on: 2015-09-30
Twitter API allows applications to access users' direct messages but if you want to download images or other media associated with those direct messages, there is no specific API call to do so.
Direct messages are private, so there is no public URL to access the direct messages' images without using OAuth or you are a real logged user accessing Twitter via a browser.
Read this article to learn how to download images that belong to direct messages using authenticated requests with this PHP OAuth client class.
More ... Post a comment See comments (3) Trackbacks (0)
Direct messages are private, so there is no public URL to access the direct messages' images without using OAuth or you are a real logged user accessing Twitter via a browser.
Read this article to learn how to download images that belong to direct messages using authenticated requests with this PHP OAuth client class.
More ... Post a comment See comments (3) Trackbacks (0)
7. How to Check if an OAuth Token is Valid?
Updated on: 2015-03-09
Posted on: 2015-03-09
Some Web applications need to show different information to users depending on whether they have authorized API access using OAuth and if the access token is still valid, like for instance showing a login button or not. Read this article to learn about solutions for this problem.
More ... Post a comment See comments (9) Trackbacks (0)
More ... Post a comment See comments (9) Trackbacks (0)