curl json

サンプル

jsonはシングルコーテーションで囲む

// GET
curl -H "X-Cybozu-API-Token:{APIトークン}" -H "Content-Type:application/json" -X GET -d '{"app":1,"id":1}' https://miyamoto-yohei-test.cybozu.com/k/v1/record.json

// POST
curl -H "X-Cybozu-API-Token:{APIトークン}" -H "Content-Type:application/json" -X POST -d '{"app":1,"record":{"name":{"value":"test"}}}' https://miyamoto-yohei-test.cybozu.com/k/v1/record.json