Giter VIP home page Giter VIP logo

hackrunninggo-ios's People

Contributors

desgard avatar hvking avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

hvking fengmoxi

hackrunninggo-ios's Issues

Create Network Model

Start to try request server by our virtual packet.
Use AFNetworking framework.

Check the API, test the packet.

login
请求方法
POST | GET http://gxapp.iydsj.com/api/v3/login
参数说明:
参数 类型 说明
Host: 字符串 gxapp.iydsj.com
Accept: 字符串 /
Authorization: 字符串 登录信息 格式为"Basic" +“username:password”的base64加密 +“=”
Proxy-Connection:字符串 keep-alive
osType: int 1为IOS 0为非IOS
appVersion: 字符串 版本信息 IOS为 1.2.0 安卓为1.2.1
Accept-Encoding: 字符串 编码方式 gzip, deflate
Accept-Language: 字符串 zh-Hans-CN;q=1
Content-Type: 字符串 application/x-www-form-urlencoded
DeviceId: 字符串 IOS的某个机器码?
CustomDeviceId: 字符串 同上
Content-Length: int 上传json的长度 login为0
User-Agent: 字符串 和设备信息相关=
Connection: 字符串 keep-alive

返回值:none


setDis
请求方法 POST http://gxapp.iydsj.com/api/v2/campus/XXX/get/1/distance/X XXX是一个三位数int,用途未知 X为设定的距离 IOS1.2.0版本为2-9
参数说明:
其余同login
相比多了一个uid 貌似是服务器上存数据的父亲文件夹名?
多了一个json 为当前的坐标,参考样例
Content-Length 为 上传的坐标json的长度


submit
请求方法:POST http://gxapp.iydsj.com/api/v2/users/XXXXX/running_records/add XXXXX为uid
参数说明:
和setDis一模一样 需要修改Content-Length为上传的json长度

base64 Encoding

To complete a Category for NSString, it owned base64 Encoding transform from string to encoding, or opposite.

Touch two files, NSString+Base64.m and NSString+Base64.h

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.