2017-03-25 5 views

답변

1

당신이/당신이

내가 내 모든 API 호출에 이것을 사용 https://github.com/jasonkneen/RESTe 도서관에서 봐 수있는 다른 REST 라이브러리를 사용할 수있는 경우에 그 라이브러리를 사용한 적이 그리고 당신은 그것으로 모든 데이터를 게시 할 수 있습니다 .

api.postData({ 
    body: { 
     text: "Test data", 
     file: Ti.Filesystem.getFile().read() 
    } 
}, function(data) { 
    // response data 
}); 

또한 일부 모델/컬렉션 도우미가 있습니다 https://github.com/jasonkneen/RESTe#alloy-collections-and-model-support

관련 문제