- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在开发 Yii2
。我有一个 URL
,在点击浏览器时会重定向到我的重定向 URI
。
网址
https://accounts.zoho.com/oauth/v2/auth?scope=ZohoBugTracker.projects.ALL,ZohoBugTracker.bugs.ALL&client_id=1000&response_type=code&access_type=offline&redirect_uri=http://11.111.111.111:7000/api/oauth/zoho_auth
当我点击上面的 URL 时,它会重定向到我的重定向 URI,同时提供代码
重定向 URI
点击上述 URL 后,重定向 URI 为 http://11.111.111.111:7000/api/oauth/zoho_auth?code=1000&location=us&accounts-server=https%3A%2F%2Faccounts.zoho.com
重定向 URI 响应
{"Message":"No HTTP resource was found that matches the request URI 'http://11.111.111.111:7000/api/oauth/zoho_auth?code=1000&location=us&accounts-server=https:%2F%2Faccounts.zoho.com'."}
如何从上述响应中获取代码
?
更新1
根据给出的建议。我尝试使用 linslin 发送 GET
请求。下面是我的代码
public static function authToken()
{
$curl = new curl\Curl();
$response = $curl->setGetParams([
'scope' => 'ZohoBugTracker.projects.ALL,ZohoBugTracker.bugs.ALL',
'client_id' => '1000',
'response_type' => 'code',
'access_type' => 'offline',
'redirect_uri' => 'http://11.111.111.111:7000/api/oauth/zoho_auth',
])
->get('https://accounts.zoho.com/oauth/v2/auth');
echo $response;
exit();
}
然后在函数内调用此函数,通过该函数我实际上使用 zoho API 创建错误
通过 POSTMAN
测试我的 API
我的email
函数是在API Controller 内编写的。因此,它首先会命中 issueSetup($param1,$param2)
public function actionEmail()
{
.
.
.
.
Installations::setupEmail($param1, $param2, $param3);
.
.
.
}
上述函数setupEmail($param1,$param2,$param3)
位于我的 Controller 内部。
public static function setupEmail($ref_no, $customer_id, $install_id)
{
.
.
.
.
.
list(params.....)= Installations::issueSetup($param1,$param2);
.
.
.
.
}
发布设置功能
public static function issueSetup($param1,$param2)
{
.
.
.
.
$token = Installations::authToken();
exit();
.
.
.
.
}
点击API
后,我在 POSTMAN 中没有得到任何响应,只有空窗口
任何帮助将不胜感激。
最佳答案
当您启用 SSL 并检查响应代码/响应 header 以重定向到 Zuhu 上的 userAuth 表单时,它工作得很好:
$curl = new \linslin\yii2\curl\Curl();
/** @var Curl $response */
$curl->setGetParams([
'scope' => 'ZohoBugTracker.projects.ALL,ZohoBugTracker.bugs.ALL',
'client_id' => '1000',
'response_type' => 'code',
'access_type' => 'offline',
'redirect_uri' => 'http://11.111.111.111:7000/api/oauth/zoho_auth',
])->setOption(CURLOPT_SSL_VERIFYPEER, true)
->setOption(CURLOPT_SSL_VERIFYHOST, false)
->setOption(CURLOPT_CAINFO, 'C:/Ampps/apache/conf/ssl_crt/cacert.pem')
->get('https://accounts.zoho.com/oauth/v2/auth');
$responseHeaders = $curl->responseHeaders;
if ($curl->responseCode === 302 && isset($responseHeaders['Location'])) {
header("location: ".$responseHeaders['Location']);
die();
}
关于url - Yii2-curl oAuth2 与 zoho,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51360587/
在搜索了 6 个多小时试图了解 zoho 发送电子邮件的邮件问题之后! 在我阅读了很多他们的答案但没有帮助的解决方案后,我发现解决方案是您需要拥有 sender选项 在您的 NodeMailer 选项
我的json代码:输入 {"responseCode":"200","responseText":"ID: 2ce934c860f48b02fb755178f8ac0a2"} 如何在 zoho cre
我之前创建了一个脚本,当用户单击链接时,该脚本会自动将用户登录到 Zoho reports。本质上,它支持通过共享用户 ID 进行单点登录以访问 Zoho Reports。 这个脚本已经工作了很长时间
您好,我正在使用以下代码使用 asp.net c# 将记录添加到 Zoho Creator 表单。但是我收到回复“该表格已从发布中删除。” 我已经在 Zoho creator 检查了表格,它工作正常并
我创建了一个小部件,用于检索亲自登录的当前 ZOHO CRM 的当前用户详细信息。 我有一个按钮可以获取当前用户的电子邮件并根据检索到的电子邮件过滤数据库。 我目前通过点击一个按钮来实现这个功能,但是
我无法进行以下工作: import zcrmsdk config = { "apiBaseUrl":"https://www.zohoapis.com", "a
我正在尝试使用 Zoho API 版本 2 在潜在客户中进行简单的记录更新。我使用 PHP 和 CURL,此调用的示例代码(更新记录中的单个字段)如下:- $apiUrl = "https://www
我正在尝试使用以下代码使用 Zoho SMTP 服务器发送邮件: public void sendEmail(Email email) { Properties props = se
我正在尝试使用 Nodemailer 设置 ZOHO 邮件。邮件配置正确,我使用以下代码发送邮件: var transporter = nodemailer.createTransport({
我正在 iOS 和 android 中开发应用程序,因为我正在集成 ZOHO CRM。我使用 OAuth2.0 进行身份验证,之后我使用 REST API 来获取“刷新 token ”,但我只得到“访
我已经看到 Zoho API 为我们提供了获取各种用户信息的选项,但我找不到任何方法来获取有关当前发出请求的用户的信息。 OAuth2 安全 API 通常提供这样的端点,例如 Google或Twitt
我正在开发 Yii2。我有一个 URL,在点击浏览器时会重定向到我的重定向 URI。 网址 https://accounts.zoho.com/oauth/v2/auth?scope=ZohoBugT
Zoho 将不再支持 REST API 的 v1 支持。我正在更改 API 以支持 v2。 之前,潜在客户模块中有一个字段表示“lastModifiedTime”,这有助于仅获取那些已修改的潜在客户。
我已经看到 Zoho API 为我们提供了获取各种用户信息的选项,但我找不到任何方法来获取有关当前发出请求的用户的信息。 OAuth2 安全 API 通常提供这样的端点,例如 Google或Twitt
谁能告诉我将从 html 网络表单捕获的数据发布到 zoho CRM 的过程吗? 我已经使用 JavaScript 创建了一个带有所有必要验证的普通客户端 html 表单,现在我想将该表单中的数据存储
我通过网络选项卡运行应用程序,我的网站在 iframe 中加载。第一页包含文件: https://live.zwidgets.com/js-sdk/1.0.5/ZohoEmbededAppSDK.mi
从 Google Spreadshhet,我正在尝试从 Zoho 收集记录。 我已经测试了这段代码: var urlgetRecords = 'https://crm.zoho.com/crm/pri
请通过链接告诉我如何创建类似 Zoho CRM 的表单。可以使用 CSS 完成吗? https://crm.zoho.com/crm/CreateEntity.do?module=Contacts提前
这是我的代码,我收到了 postural() 调用的内部错误。顺便说一下,还有一件事我想知道我们如何使用 verify_peer 到 0(零)来表示不使用 SSL 东西。我的代码有什么问题? void
我在 MySQL 中有一个数据库,我正在使用 Zoho Books 来保存我的帐户。 我想用数据库中已有的收入数据更新我的 Zoho Books。如何做到这一点? 我想自动执行此任务,每次对数据库进行
我是一名优秀的程序员,十分优秀!