https://github.com/linjunpop/weixin-js-sdk-sample
A barebones Weixin JS-SDK app using Sinatra.
https://github.com/linjunpop/weixin-js-sdk-sample
Last synced: 2 months ago
JSON representation
A barebones Weixin JS-SDK app using Sinatra.
- Host: GitHub
- URL: https://github.com/linjunpop/weixin-js-sdk-sample
- Owner: linjunpop
- Created: 2015-01-27T07:56:56.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-11-01T07:52:21.000Z (over 9 years ago)
- Last Synced: 2025-01-09T03:41:34.744Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 10.7 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Weixin JS-SDK Sample
[](https://heroku.com/deploy)
## Demo
Start the server, then open website from Weixin/Wechat.
## Fetch a signature
```shell
curl "http://example.com/signature" \
-X "POST" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d $'{
"nonce_str": "Wm3WZYTPz0wzccnW",
"timestamp": "1414587457",
"url": "http://mp.weixin.qq.com"
}'
```
Returns
```json
{
"signature": "0f9de62fce790f9a083d5c99e95740ceb90c27ed"
}
```