Comments (2)
不能直接用于微信小程序的客户端脚本里。
- 讯飞WebAPI必须要设定IP地址白名单才能用
- 我只在NodeJS的环境下测试过,不太确定是否所有API在微信小程序的脚本中可用。
所以,要在微信小程序中使用的话,如果你的微信小程序的服务端使用NodeJS的话,我觉得问题不大。也就是微信端把数据发送到你的服务端,服务端再转发到讯飞的服务器来请求。而不是直接从微信小程序的脚本中直接请求讯飞的服务器。
from xunfeisdk.
@breakstring 谢谢谢谢!
按照讯飞的文档忙活了一晚上部署在小程序(无服务端)里,才发现讯飞WebAPI是不支持在客户端使用的
from xunfeisdk.
Related Issues (8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xunfeisdk.