New to OSSN: Question regarding use of api v1.0 and uploading an image to a Group message

BlkWolf LanHunter Posted in Beginning Developers 3 years ago

Learning about OSSN over the past week and looking to understand the general use of the tool API v1.0. Reading through the documentation for this service, I see where a reference to being able to add a photo to through the API for services like Add photo to album and looking for the same when adding a group post that includes an image. (via api)

The Wall post add does not include the same fields as Add a photo to an album.

Q1: Is this a limit to the v1.0 or is it a 2 step process to add the photo to a users default album then referencing it in the post to the group?

Q2: If is is possible, is it a case that it is uuencoded into the text field of the post?

Thanks all for your time. I have tons of questions and doing my best to use the past forums best as able. Appreciate the help. Any examples of API calls (I'm using GET method at the moment so any examples of place to see great examples of its use would be helpful)

Cheers

Replies
Indonesian Arsalan Shah Replied 3 years ago

Ok, to answers your both questions, you can add photo to wall post via API , I am sorry I missed to mention on API page. I have update wall_add

https://www.opensource-socialnetwork.org/webservices/view/3576/wall-post-add

You can specify a file in ossn_photo attribute example

<input type='file' name='ossn_photo' />

You may see Java wiki page for finding how to send file via API in case you using Java : https://docs.oracle.com/javaee/6/tutorial/doc/glraq.html

It is same as you in photo add in album so if you achieved in that you can use same code.