# diandiankong **Repository Path**: desu/diandiankong ## Basic Information - **Project Name**: diandiankong - **Description**: 点点控 - **Primary Language**: Unknown - **License**: GPL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2016-10-29 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # diandiankong ### Running The Application To test the example application run the following commands. * To package the example run. mvn package -DskipTests * To run the server run. java -jar target/api-1.0.0.jar server diandiankong.yml * To run in background. nohup java -jar api-1.0.0.jar server diandiankong.yml >console.log 2>&1 & ## Face++ API Key: 79703d127720b84da26fa4690008d27a API Secret: 7Rd2wSbmj0bsBcqpwOenFJDWLkmvLt8W API Url: apicn.faceplusplus.com ### APIs ``` $ curl --form img=@Che_Guevara.jpg --form press=OK http://localhost:9080/api/img/upload {"id":6198100852847149312} $ curl -H "Content-Type: application/json" -X GET http://localhost:9080/api/img/info/6198100852847149312 {"id":6198100852847149312,"name":"Che_Guevara.jpg","width":240,"height":320,"uri":"http://localhost:9080/api/img/download/6198100852847149312","storeName":"a85df6d4-2df7-4568-963a-3a619f25bd80.JPG","ts":1477742399000} ``` ### Face++ APIs 创建一个Person ``` $ curl -H "Content-Type: application/json" -X POST https://apicn.faceplusplus.com/v2/person/create?api_key=79703d127720b84da26fa4690008d27a&api_secret=7Rd2wSbmj0bsBcqpwOenFJDWLkmvLt8W&tag=diandiankong&person_name=zhangsan ``` 返回 ```json { "added_face": 0, "added_group": 0, "person_id": "1fd94d659f91534d0fe594c498da75ca", "person_name": "zhangsan", "tag": "diandiankong" } ```