https://github.com/kxxoling/jsonp
Convert JSON service to JSONP service
https://github.com/kxxoling/jsonp
Last synced: 4 months ago
JSON representation
Convert JSON service to JSONP service
- Host: GitHub
- URL: https://github.com/kxxoling/jsonp
- Owner: kxxoling
- Created: 2015-01-18T13:02:31.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-21T05:28:15.000Z (over 10 years ago)
- Last Synced: 2025-06-07T14:05:03.623Z (4 months ago)
- Language: Python
- Size: 113 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 一个将 JSON 转化为 JSONP 的 Service
## 使用方法
接受 GET 方法的 HTTP 请求,其中 callback 参数和 url 参数为必选,callback 为 JSONP 回调函数名,url 为原始 JSON 服务 URL。请求 JSON:
GET https://api.github.com/users/octocat/orgs
请求 JSON:
GET http://localhost:5000/?url=https%3A%2F%2Fapi.github.com%2Fusers%2Foctocat%2Forgs&callback=callback