-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
34 lines (26 loc) · 1.19 KB
/
README
File metadata and controls
34 lines (26 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Encoding.com XML API Wrappers
==============
This plugin connects to the Encoding.com API for pay as you go cloud based video transcoding services.
Requires a API Key and User ID from Encoding.com. 30day adn 1GB free trial available at www.encoding.com/signup
Examples:
Dim xml, sURL, sRequest, result, userID, userKey
userID = "777"
userKey = "277e0d0sdfaaa9140a27c03419f5era"
xml = "<?xml version=""1.0""?>" & VbCrLf
xml = xml & "<query>" & VbCrLf
xml = xml & "<userid>" & userID & "</userid>" & VbCrLf
xml = xml & "<userkey>" & userKey & "</userkey>" & VbCrLf
xml = xml & "<action>" & "GetMediaList" & "</action>" & VbCrLf
xml = xml & "</query>" & VbCrLf
sUrl = "http://manage.encoding.com"
sRequest = "xml=" & xml
result = HTTPPost(sUrl, sRequest)
Function HTTPPost(sUrl, sRequest)
Set oHTTP = CreateObject("Microsoft.XMLHTTP")
oHTTP.open "POST", sUrl,false
oHTTP.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
oHTTP.setRequestHeader "Content-Length", Len(sRequest)
oHTTP.send sRequest
HTTPPost = oHTTP.responseText
End Function
Copyright (c) 2009 Encoding.com Inc.