GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — APIJSON-Demo/APIJSON-Python/README.md at master · meikis/APIJSON-Demo

Expand file tree

/

README.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
43 lines (27 loc) · 1.44 KB
/

README.md

Copy path

File metadata and controls

43 lines (27 loc) · 1.44 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

APIJSON测试 - Python

1.下载后解压APIJSON-Demo工程

打开APIJSON-Demo的GitHub主页 > Clone or download > Download ZIP > 解压到一个路径并记住这个路径。


2.运行Python脚本

Windows

假设解压路径为 D:\Downloads

打开 CMD命令行窗口
cd D:\Downloads\APIJSON-Demo-master\APIJSON-Python
python test.py

如果失败,一般是因为 "python 不是内部或外部命令",则执行:
set PATH=%PATH%;C:\Python27
其中,Python27对应2.7版,如果是其它版本请修改下数字,例如3.6版就改为Python36。

然后重新执行:
python test.py

Linux 或 Mac OS

假设解压路径为 /Users/Tommy/Downloads

打开 Terminal终端窗口,然后分别执行:
cd /Users/Tommy/Downloads/APIJSON-Demo-master/APIJSON-Python
python test.py


3.测试接口

看 命令行控制台。
如果默认url不可用,修改为一个可用的,比如正在运行APIJSON后端工程的电脑的IPV4地址,然后重新运行。

也可以直接使用 APIAuto-机器学习 HTTP 接口工具 或 Postman 等其它 HTTP 接口工具,格式为 HTTP POST JSON,具体示例参考通用文档
https://github.com/Tencent/APIJSON/blob/master/Document.md

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.