Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to access Wechat of SAP FSM

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

In this issue, the editor will bring you about how to access Wechat on SAP FSM. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

Here's how to call these API through the official Wechat account.

Suppose our scenario is: you want to browse the service technicians available in SAP FSM in Wechat, as shown in the following figure:

So first of all, we need to design a Web application, in which we use the nodejs SDK provided by SAP FSM to call API through the way introduced in the first article.

To this end, we have developed a Vue application that initiates a request for SAP FSM employee (technician) data in the Vue lifecycle hook function mounted:

Within the specified period of time in our Wechat, SAP FSM has three available technicians. Their names, user ratings, titles, years of service and other data are returned to WeChat through FSM nodejs SDK, as shown in the Wechat developer debugger above.

For example, this data whose employeeID is 2E9BC784D477CA3DD048E593D853CFF1 can be viewed directly through this url in FSM:

Master Data

After the Vue application is finished, deploy it to the server and generate a url, which we assume is https://www.

How to bind this url to the official Wechat account?

In the custom menu on Wechat official account, create a new menu item "appointment" and maintain a specific url for it.

Clicking on this menu in your Wechat will take you to the corresponding url.

Url format: +, *

Appid is obtained from the official account development information at the backend of the official account of Wechat:

And the value after redirect_url, apply https://www. for web The value after url encode.

Once all this is set up, the scene that jumps from the Wechat official account menu to the web app will work.

If you want to debug the Web application deployed to the server by simulating Wechat access locally, you only need to install Wechat developer tools and bind your personal WeChat account to the WeChat list of developers of Wechat official account:

Then log in to the Wechat developer tool with your WeChat account, enter the long list of url that contains the redefinition of oauth 2.0 in the address bar, and click the Allow button:

You can step through the front-end application code just as you did with the Chrome developer tool:

The above is the editor for you to share how to access the Wechat of SAP FSM. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report