Buzzsaw Developer

Reply
Active Member
JohnBartak
Posts: 8
Registered: ‎11-26-2003
Message 1 of 3 (274 Views)

Incompatibility between 1.x and 5.x version

274 Views, 2 Replies
10-23-2003 02:53 AM
(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"
Active Member
JohnBartak
Posts: 8
Registered: ‎11-26-2003
Message 2 of 3 (274 Views)

Re: Incompatibility between 1.x and 5.x version

10-23-2003 02:54 AM in reply to: JohnBartak
The session object used to store information about the path that you logged in with. It no longer does so. You must always specify paths relative to the top of the site.
*Thilak
Message 3 of 3 (274 Views)

Re:

10-27-2003 12:40 AM in reply to: JohnBartak
Thx John for posting it................that is my
mail.

 

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
The
session object used to store information about the path that you logged in
with. It no longer does so. You must always specify paths relative to the top
of the site.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

New Buzzsaw Category!

The Buzzsaw forum has moved into it's very own category page, and can no longer be found within the Additional Product Forums.

Ask the Community