Skip to content

encoding/Encoding.com-VBS-API-Wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

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/#
 
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.

About

VBScript Script that will send XML requests to encoding.com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published