2011-08-03 66 views

回答

0

我寫了一個小腳本,這樣它的伎倆我!

需要 'JSON' 需要 'rest_client' 需要 'couchrest' 需要 'PP'

json = File.read('file.json') 
doc = JSON.parse(json) 
CouchRest.post('http://localhost:5984/db/',doc) 

pp doc