Jump to content

Using Classic ASP to create new member via API


netsmithUK

Recommended Posts

Really struggling to find an example of this can anyone point me in the right direction please.

<%
Set HTTP = CreateObject("MSXML2.serverXMLHTTP")

HTTP.Open "POST", ("http://www.DOMAIN.com/forum/api/index.php?/core/members"), False

HTTP.setRequestHeader "name", "APITest" 
HTTP.setRequestHeader "email", "crazy@crazytest.co.uk" 
HTTP.setRequestHeader "password", "frankspencer" 

HTTP.setRequestHeader "WHAT SHOULD THIS LABEL BE?", "myKeyHere" 

HTTP.send("")

Response.write HTTP.responseText 
Response.end 

%>

I'm know what my key is, I'm just not sure what the label should be before it?

Also, not surprisingly I get an error back in JSON format from IPB - so its getting as far as the API, but in the API Log screen in the forum there is nothign listed even under failures - if that log not real time?

 

Thanks

Chris
 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...