开发者

Posting image/video to MySpace using API?

I am Working in Asp.net 3.5 with c# 2008.I have done authentication part & I'm also able to get all image URLs or videos from my application. I'm also able to send messages to MySpace. Now I would like to post images & videos.

Please let me know how can I post images/videos from my applicati开发者_运维百科on.


Here is a link to the Documentation on using Media Items API.

http://wiki.developer.myspace.com/index.php?title=OpenSocial_0.9_MediaItems

It explains how to use it.

you need to Issue a POST request on following URL

http://api.myspace.com/1.0/mediaItems/{personId}/{selector}/@videos 

if its image then set content-type to image/{type} like content-type="image/jpg" for jpg these formats are supported: .jpg, .gif, .bmp, .tiff, .png.

similarly for videos use content type like content-type=”video/mpeg” these formats are supported .avi,.mov,.mpg,.wmv.

For more details please consider checking out above link.

For details on what a POST request is or what is its structure check out this http://www.jmarshall.com/easy/http/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜