I'm trying to upload a new document to specific folder I made. One
problem i dont have a clue how to.

My code to upload a new document:

Dim authFactory As GAuthSubRequestFactory

        Try
            authFactory = New GAuthSubRequestFactory("writely",
"exampleCo-exampleApp-1")
            authFactory.Token = HttpContext.Current.Session
("SessionToken")

            'request a token with the proper scope to retrieve and
create private documents.
            Dim Service As DocumentsService = New DocumentsService
(authFactory.ApplicationName)
            Service.RequestFactory = authFactory

            GoogleService = Service
        Catch
            GoogleService = Nothing
        End Try

Dim newEntry As DocumentEntry = New DocumentEntry

newEntry = Service.UploadDocument("C:\nieuw.doc", 1.doc")

Does anyone have a clue? Please help doesnt have to be in vb.net


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Docs Data APIs" group.
To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com
To unsubscribe from this group, send email to 
google-docs-data-apis+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Docs-Data-APIs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to