What?
This is an article documenting how to access ZohoCRM with API v2 using PHP and cURL. The first few functions are to manage OAuth v2 and generate the refresh and access tokens. The second snippet ...
... %A_ScriptDir% ; Ensures a consistent starting directory.
#SingleInstance force
; --------------------------------------------------------------------------------------
; Set program Defaults
; --------------------------------------------------------------------------------------
Title ...
... you need for the below). The image link (src) will be as below but then this is a redirect to the actual thumbnail stored by Google Drive:
https://drive.google.com/thumbnail?authuser=0&sz=w320&id=
// ...
... on the code.
How?
So the plan is:
Declare the functions.
Authenticate on page load by checking timestamp in token file:
If token is required, redirect user to Consent page and rewrite token ...
... requires PHP 5.6 and above. For lower versions you can issue the MySQL commands directly like:
mysqli->query("START TRANSACTION")
mysqli->query("COMMIT")
mysqli->query("ROLLBACK")
Important note: ...
... // curl_exec function will show the response directly on the page (if set to 0 curl_exec function will return the result)
curl_setopt($ch, CURLOPT_PORT, 443); ...
...
Create a file called index.php in the folder you just made with the following contents:
Append the following code to the .htaccess file in the root of your joomla website:
# Admin Redirect
RewriteEngine ...
... folder (my preference) and add the linked stylesheet in the head section of your webpage. I'm selective of what icons I copy over but the full directory can be found at https://github.com/FortAwesome/Font-Awesome:
...
Applies to:
TravelPort Universal API
PHP 4 or 5
cURL
What?
An article on how to resolve errors and setup a standard ping request using the TravelPort Universal API. This is to be achieved using ...
... // TRUE to return the transfer as a string of the return value of curl_exec() instead of outputting it out directly.
// store the response
$ch_result = curl_exec($ch);
// close ...
We use cookies to improve your experience on our website. By browsing this website, you agree to our use of cookies. Read more about our Privacy Policy.