ProsePoint Express: hosted newspaper website content management software

programatically create stories

1 reply [Last post]
shackman
User offline. Last seen 1 year 45 weeks ago. Offline
Joined: 31/03/2010
Posts:

i would like to programmatically create ProsePoint content; specifically stories (but possibly other types down the road)

is there a ProsePoint API (or any other API) that simplifies this task?

i have structured data that includes the story itself, images, user comments, links, etc. i would like the API to handle the inter-object referential details for for me; e.g. nid, oid, pid, uid, etc.

example psuedo code:

story = new story()
.. set story fields ...
for (comment in comments)
{
  comment = new comment()
  story.add_comment(comment)
  ... set comment fields ...
}
story.save()

anyone have any good suggestions?

__________________

Rob

beng
User offline. Last seen 1 week 3 days ago. Offline
Joined: 27/02/2009
Posts:
I'd suggest you have a look (and search) on drupal.org.

Hi,

If you are executing code on the same machine as the web server, you can use Drupal and it's PHP API.

If you are talking about an API accessible from another machine ... Drupal core has a Blog API module and I vaguely remember there are some other Drupal modules which can programmatically create nodes.

I'd suggest you have a look (and search) on drupal.org.