adamyeager / PushbulletSharp

This is a simple pushbullet wrapper written in C#.
MIT License
53 stars 61 forks source link

Nothing happen after Push File #1

Closed wchuan11 closed 10 years ago

wchuan11 commented 10 years ago

When preview the URL in browser, HTTP error 403 is displayed.

Everything looks OK when stepping through.

The code I written on VB:

Private Sub PushFile() Dim Client As New PushbulletClient(ApiKey) Dim request As New PushFileRequest() With { _ .deviceiden = "xxxxxxxxxxx", .filetype = "image/png", .filename = "image.png", .file_path = Application.StartupPath & "\" & "image.png" } Dim response = Client.PushFile(request) MsgBox("pushed") End Sub

Am I misssing anything?

adamyeager commented 10 years ago

Yes, the file pushing is incomplete. I really should have put a not implemented exception on that part. I haven't had time lately to finishing it, but let me see if I can complete it this weekend.

adamyeager commented 10 years ago

Hi @wchuan11 I have fixed the file pushing functionality. I've tested it by pushing an image to my iOS device. Please let me know if you have any more issues.

Also, I added a property to the PushFileRequest class for "body" which is an optional parameter according to PushBullet's API.

wchuan11 commented 10 years ago

Thumbs up!