技术开发 频道

Mobile Web Server开发指南

  4.怎样为自己开发手机桌面和Web程序

  开发者可以基于任何语言来开发桌面和Web应用。使用标准的HTTP协议来访问API。下面是请求访问手机摄像头的一个请求:

Http Request
   POST
/restserver.do
    User
-Agent: xxx
    Host: api.borqs.com
    phoneid: your phone id
    Content
-Lenght: 20
    action
=camera&type=path
    format
=xml

Http Response
    
<?xml version="1.0" standalone="yes"?>
    
<camera_response>
        
<path>http://borqsgws.8800.org/your phone id/sdcard/photo/xxxxxxxx.jped</path>
    
</ camera _response>

   获取http://borqsgws.8800.org/your phone id/sdcard/photo/xxxxxxxx.jped内容将得到本次手机为你摄取的图片。

0
相关文章