boonebgorges / participad

A WordPress plugin for integrating your WP installation with an instance of Etherpad Lite
http://etherpad.org
40 stars 15 forks source link

Etherpad user/WP user mapping #2

Closed boonebgorges closed 12 years ago

boonebgorges commented 12 years ago

From https://github.com/Pita/etherpad-lite/wiki/HTTP-API:

Portal maps the internal userid to an etherpad author.

    Request: http://pad.domain/api/1/createAuthorIfNotExistsFor?apikey=secret&name=Michael&authorMapper=7

    Response: {code: 0, message:"ok", data: {authorID: "a.s8oes9dhwrvt0zif"}} 

Portal maps the internal userid to an etherpad group:

    Request: http://pad.domain/api/1/createGroupIfNotExistsFor?apikey=secret&groupMapper=7

    Response: {code: 0, message:"ok", data: {groupID: "g.s8oes9dhwrvt0zif"}}