I'm using JSON-C when POST request.

public JDict addAccessControlList(String email, String title, String role) {
/* 
{
  "data": {
    "scope": "[email protected]",
    "scopeType": "user",
    "role": "editor"
  }
}
 */
String url = getAccessControlListLink(title);

//String url = 
String.format("https://www.google.com/calendar/feeds/%s/acl/u";, getEmail()); 
// for the primary

JDict json = new JDict();
JDict data = new JDict();
data.set("scope", email);
data.set("scopeType", "user");
data.set("role", role);
json.set("data", data);
 Map headers = getDefaultHeaders();
headers.put("Content-Type", "application/json");
return POST(url, headers, json.toString(), null);
}

-- 
You received this message because you are subscribed to the Google
Groups "Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://code.google.com/apis/calendar/community/forum.html

Reply via email to