[VB.NET] Sendspace Uploader by fudmario

Iniciado por fudmario, Julio 14, 2017, 11:05:51 PM

Tema anterior - Siguiente tema

0 Miembros y 1 Visitante están viendo este tema.




Aquí les dejo esta implementación que hice  en You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login de la API de Sendspace, para su uso deben registrarse en You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login y generar su ApiKey en You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login



Ejemplo de uso:

Código: vbnet

Dim filePath As String = "C:\Compress\MoveControl.zip"
Dim sendspaceclient As New Sendspace.SendspaceClient("YourApiKey")
Dim ssService As New Sendspace.SendspaceService(sendspaceclient)
' De manera Sincronica
'Dim result As Sendspace.SendspaceResponse = ssService.UploadFile(filePath)
' De manera Asincronica
Dim result As Sendspace.SendspaceResponse = Await ssService.UploadFileAsync(filePath)
  MessageBox.Show(result.ToString())


Retorna:

Código: text

Status.......: ok
File ID......: u9km31
File Name....: MoveControl.zip
Download Url.: https://www.sendspace.com/file/u9km31
Delete Url...: https://www.sendspace.com/delete/u9km31/5bb0402796182faa626e3aa7593137c7



El código fuente lo pueden descargar desde: You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
La libreria Compilada la pueden descargar Aquí: You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login