Where to insert Bing's automatic URL submission code?

I don’t know where to add the code to be able to automatically submit url to Bing found in their webmaster tools.

Here is their codes:

JSON request sample:

POST /webmaster/api.svc/json/SubmitUrlbatch?​apikey=sampleapikeyEDECC1EA4AE341CC8B6 HTTP/1.1​
Content-Type: application/json; charset=utf-8​
Host: ssl.bing.com​

{
“siteUrl”:“http://yoursite.com”,​
“urlList”:[
http://yoursite.com/url1”,
http://yoursite.com/url2”,
http://yoursite.com/url3
]
}

JSON response sample:

HTTP/1.1 200 OK
Content-Length: 10
Content-Type: application/json; charset=utf-8

{
“d”:null
}

or XML

XML request sample:

POST /webmaster/api.svc/pox/SubmitUrlBatch?apikey=EEDECC1EA4AE341CC57365E075EBC8B6 HTTP/1.1
Content-Type: application/xml; charset=utf-8
Host: ssl.bing.com

http://example.com

http://example.com/url1
http://example.com/url2

XML response sample:

HTTP/1.1 200 OK
Content-Length: 0

Thank You!