Hey Ram,
Currently only creating activities & setting app data is supported,
just like through the javascript API, so try posting to your
activities instead :)
For the 'other' actions (like posting to people/@all) isn't really
defined yet what it's supposed to do (presumably that should be
people/../@friends to create a friend relationship), but we're still
defining what exactly we should and shouldn't support over on the spec
list.
-- Chris
On Jul 25, 2008, at 3:00 PM, Ram Sharma wrote:
Thanks Chris. I tried it that way earlier, but somehow it didn't work.
I was trying to test few things on Rest Interface.Can you please
specify the
exact Rest URL for POST method. I tried testing it by submitting a
form,with
action : http://<server
url>/social/rest/people/<id>/@all?format=atom&st=john.doe:john.doe:
4675:shindig:http%3A//
dirk.balfanz.googlepages.com/contacts.xml:0 and method "POST" , but
it didnt
work.
can you please help ?
Thanks.
On Fri, Jul 25, 2008 at 3:57 PM, Chris Chabot <[EMAIL PROTECTED]>
wrote:
The RESTful interface doesn't support any OAuth authentication yet,
but
that's what you would use & then your allowed to write (as the user
your
authenticated as), allowing just any old anonymous user to write
would be a
bad thing :)
It does currently support security tokens though, so you could just
grab a
security token of an iframe (or just type one in owner:viewer:etc
type
format if you have allow_plaintext_token=true in your config) and
use that
to 'authenticate'. That's how i'm developing and testing the rest
interface
currently.
-- Chris
On Jul 25, 2008, at 7:05 AM, Ram Sharma wrote:
Hi,
For php shindig, how do I call the POST methods through Rest API ,
externally? I tried it by submitting a form, but its says, that
the PUT
methods are not allowed for anonymous users.Then I saw that the
same is
implemented in DataHandler.php.
Even if I overrule this check in the code, I am not able to insert
any
value
through POST. Does this means, any other method, except GET cannot
be
called
through an external application?
Am I missing something in my understanding? Can you please give me
any
example for POST?
Thanks.
--
Ram Sharma
Software Engineer
Impetus Infotech (India) Pvt Ltd
Indore