Zoho crm api v2 for php

Zoho crm api v2 for php,php,crm,zoho,Php,Crm,Zoho,我正在尝试使用PHP连接Zoho CRM。我跟随Zoho CRM并安装了该软件包 <?php require 'vendor/autoload.php'; use zcrmsdk\crm\setup\restclient\ZCRMRestClient; use zcrmsdk\oauth\ZohoOAuth; $configuration =array("client_id"=>"clientid","client_secret"=>"clientsecret","red

我正在尝试使用PHP连接Zoho CRM。我跟随Zoho CRM并安装了该软件包

<?php
require 'vendor/autoload.php';
use zcrmsdk\crm\setup\restclient\ZCRMRestClient;
use zcrmsdk\oauth\ZohoOAuth;



$configuration =array("client_id"=>"clientid","client_secret"=>"clientsecret","redirect_uri"=>"redirecturl","currentUserEmail"=>"useremail");

$a = ZCRMRestClient::initialize($configuration);

$oAuthClient = ZohoOAuth::getClientInstance();
$refreshToken = "refreshtoken";
$userIdentifier = "emailid";
$oAuthTokens = $oAuthClient->generateAccessTokenFromRefreshToken($refreshToken,$userIdentifier);




$result = ZCRMRestClient::getModule("Contacts");
print_r($result);
exit;
?>

但我正在使用正确的凭据连接Zoho API。

我自己在安装Zoho API时花了一天时间

确保api和oauth客户端应用程序使用相同的域

它们有两个域:


如果您在一个应用程序上创建了oauth clinet应用程序,请将同一个应用程序用于api端点。

此外,如果您在oauth_configuration.properties文件中使用accounts_url=,则还应在configuration.properties文件中设置apiBaseUrl=www.zohoapis.eu


鉴于参数是从这两个属性文件中读取的,我认为您不需要配置数组。

您是否通过再传递一个参数来检查它?
Not able to get access token from refresh token, invalid client_id.