MySpace API

I have updated my MySpace API to accept HTTP POST requests as well as GET. This means that the fields can be as long as you like, which is good for blog posts.

Try it out:

The code for the test page is:

<form name='form1' id='form1' method="post" action=''>
<tr><td>Post Subject</td><td><input type="text" id='txtSubject' name='txtSubject'></td></tr>
<tr><td colspan=2>Post Body</td></tr>
<tr><td colspan=2><textarea id='txtBody' name='txtBody' rows=5 cols=31 width=100%></textarea></td></tr>
<tr><td>MySpace Email</td><td><input type="text" id='txtEmail' name='txtEmail'></td></tr>
<tr><td>Myspace Password</td><td><input type="password" id='txtPassword' name='txtPassword'></td></tr>
<tr><td></td><td><input type=submit value="Submit" id='btnsubmit' name='btnsubmit'></td></tr>

As before, I am happy to share the code if you request it.

MySpace API - Automate your Blog posts

I have written a small API which allows you to add blog posts with a simple URL GET.
Update: It seems that sometime recently the MySpace pages for posting to your blog have changed, and so this API is now broken. I will fix it shortly when I have the time.

The format for usage is:[Post Subject]&Body=[Post Body]&Email=[Your Myspace Email]&Password=[Your Myspace Password] 


Remember to HTML encode the [Post Subject] and [Post Body]

To try it out:

The code for this simple test page is:

<script type="text/javascript">
function SubmitBlog()
var sSubject = escape(document.getElementById('iSubject').value);
var sBody = escape(document.getElementById('iBody').value);
var sEmail = document.getElementById('iEmail').value;
var sPW = document.getElementById('iPassword').value;
window.location = "" + sSubject + "&Body=" + sBody + "&Email=" + sEmail + "&Password=" + sPW;

<tr><td>Post Subject</td><td><input type="text" id='iSubject'></td></tr>
<tr><td colspan=2>Post Body</td></tr>
<tr><td colspan=2><textarea id='iBody' rows=5 cols=31 width=100%></textarea></td></tr>
<tr><td>MySpace Email</td><td><input type="text" id='iEmail'></td></tr>
<tr><td>Myspace Password</td><td><input type="text" id='iPassword'></td></tr>
<tr><td></td><td><input type=button value="Submit" onClick="SubmitBlog()"></td></tr>

No logs of requests are kept (I have no interest in stealing your password and becoming the most hated man on the internet). All the source code is in ASP.Net. If you would like a copy, send me an email.

At the moment, because all requests are handled via GET, the body posts must be reasonably small. If there is interest I will expand the API to allow POSTs so that the blog body can be larger.

MySpace API

2 small posts today, and maybe something bigger tomorrow.

I was having a think about big content sources, and the biggest one at the moment is MySpace - and now there is an (unofficial) API to help you get through the data.

Tom Morris has put together a MySpace API which fetches a person’s profile and comments.


Just insert the name of the person of the FriendID in place of ‘tom’ for the profile that you want.

Right, now to use or abuse, use or abuse…