(Posted for another user)
I just updated my buzzsaw client to 5 and tested out a copy method from a
PPSESSION object. Here is a sample code:
Dim oPPSession As New PPSession
Dim oPPRes As IPPResource
Dim url As String
Dim username As String
Dim password As String
Dim scrfile As String
Dim dstfile As String
' define variables
url = "https://webdav.buzzsaw.com/ppapi/testing"
username = "xxxx"
password = "xxxx"
scrfile = "/test/Browsernode.txt"
dstfile = "/test/Browsernode1.txt"
' logout and the login
oPPSession.LogIn username, password, url
' get a resource to srcfile and copy it to dstfile
Set oPPRes = oPPSession.GetResource(scrfile)
oPPSession.Copy oPPRes, dstfile
If my memory serves right, the above used to work earlier (with previous version of API), but now errors
out at 'GetResource' method. All that it needed was a relative path to the url.
Now I have to make the following changes for it to work with the current API:
scrfile = "/Testing/test/Browsernode.txt"
dstfile = "/Testing/test/Browsernode1.txt"