This site uses cookies own and third. If you continue to browse consider to accept the use of cookies. OK More Info.

[VB.NET] Sendspace Uploader by fudmario

  • 0 Replies
  • 3461 Views

0 Members and 1 Guest are viewing this topic.

Offline fudmario

  • *
  • Underc0der
  • Posts: 199
  • Actividad:
    0%
  • Reputación 13
    • View Profile
    • fudmario - GitHub

[VB.NET] Sendspace Uploader by fudmario

  • on: July 14, 2017, 11:05:51 pm


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


Ejemplo de uso:

Code: (vbnet) You are not allowed to view links. Register or Login
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:

Code: You are not allowed to view links. Register or Login
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. Register or Login
La libreria Compilada la pueden descargar Aquí: You are not allowed to view links. Register or Login