简体   繁体   English

具有Salesforce的Infusionsoft REST API

[英]Infusionsoft REST API with salesforce

I am trying to access Infusionsoft data from salesforce trigger. 我正在尝试从Salesforce触发器访问Infusionsoft数据。 I am able to access the data after authorizing the IS app manually by a user vai VF page/ UI. 我可以通过用户VAI VF页面/ UI手动授权IS应用程序后访问数据。 I want to skip this. 我想跳过这个。 I want to get the data with automatic app authorization. 我想通过自动应用授权来获取数据。

Requirment: 1. SF trigger-->2. 要求:1. SF触发器-> 2。 Call IS REST API to Authorize-->3. 调用IS REST API进行授权-> 3。 Get Code --> 4. Call IS REST API Token url--> redirecct_url / Access IS CRM data for manipulation 获取代码-> 4.调用IS REST API令牌URL-> redirecct_url /访问IS CRM数据进行操作

But after step 2 it is redirecting me to IS login/ authorize page and then redirecct_url 但是在第2步之后,它将我重定向到IS登录/授权页面,然后redirecct_url

As I am calling from code I cant access redirected url and its query string params. 当我从代码中调用时,我无法访问重定向的URL及其查询字符串参数。

Any suggestion /Help it is greatly appreciated. 任何建议/帮助,我们将不胜感激。

We had similar situation in our case. 我们的案子也有类似情况。 We've decided to authorize access manually once, save access token in our database and refresh it regularly using a cron job (as access token expires in 24 hours - this value changes from time to time). 我们已经决定手动授权一次访问,将访问令牌保存在我们的数据库中,并使用cron作业定期刷新它(因为访问令牌会在24小时内到期-该值会不时更改)。 Thus, you'll need to get access token manually only once per Infusionsoft application, using saved token for all following requests. 因此,对于每个Infusionsoft应用程序,您仅需要手动获取访问令牌一次,并为随后的所有请求使用已保存的令牌。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM