I'm looking to create an api for my site where another site can consume and display certain data from my site. Ideally I would like to limit access to only those domains that have applied for an API key. I also am think that the JSON server makes the most sense. I've tried to go through the documentation, but there are stil a number of think that are not clear.
My first thought was to follow the book example and use mootools to retrieve and display data from the JSON server. (http://drupal.org/node/522942). After trying and failing I came across this post here http://groups.drupal.org/node/24372. It seems that JSON can't be uses to pull data across domains. While there is some instruction on how to hack it to use JSONP I'd prefer not opening things up to the security risk.
I than found this posting detailing how to access the JSON services via Javacript. http://drupal.org/node/305819. I'm a little confused, but I would assume that this has the same limitation, that the page pulling it must be on the same domain. if not someone please correct me.
My third try was to use the php and curl example detailed here http://drupal.org/node/305799, but I ran into some trouble her as well. Where do I get the session ID from "$sessid = '9999your9999sess9999id'; // Your session ID." is this something I have to request from the server? do I have to connet to the server first? get the session ID, and then make my method request?
Basically, if anyone can point me in the right direction of how to pull and display nodes from another domain, using services in the most simple fashion, I would greatly appreciate the help.
Thanks!