Forum Discussion
As you know post needs the user to be logged in.
If you have already logged in and already have the session, just call the Rest Api to post: /boards/id/[id]/messages/post?message.subject="subject"&message.body="body"
It will be slightly different if your call is from outside community.
You need to login first:
http:/yourcommunity.com/restapi/vc/authentication/sessions/login?user.login=username&user.password=password
get the session key from the response (sessionKey).
and then post:
http:/yourcommunity.com/restapi/vc/boards/id/[id]/messages/post?message.subject="subject"&message.body="body"&restapi.session_key=sessionKey
Please find the detailed Api here:
http://community.lithium.com/t5/Community-API/bd-p/developers-rest-api?page=authentication
http://community.lithium.com/t5/Community-API/bd-p/developers-rest-api?leaf-id=Board.messages.post#Board.messages.post
Thank you for your reply,
I will need to first Login using code you gave but
What is the [id] is this the id of the post I am making and what should this value be. So say I have a board called favouriteLinks how would I get an [id]
Kind Regards
Darryn Hart