DeQmaTech.PushbulletSDK 1.3.2

.NET Core 2.1 .NET Standard 2.0 .NET Framework 4.5.2
dotnet add package DeQmaTech.PushbulletSDK --version 1.3.2
NuGet\Install-Package DeQmaTech.PushbulletSDK -Version 1.3.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DeQmaTech.PushbulletSDK" Version="1.3.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DeQmaTech.PushbulletSDK --version 1.3.2
#r "nuget: DeQmaTech.PushbulletSDK, 1.3.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install DeQmaTech.PushbulletSDK as a Cake Addin
#addin nuget:?package=DeQmaTech.PushbulletSDK&version=1.3.2

// Install DeQmaTech.PushbulletSDK as a Cake Tool
#tool nuget:?package=DeQmaTech.PushbulletSDK&version=1.3.2

Features

  • Assemblies for .NET 4.5.2 and .NET Standard 2.0 and .NET Core 2.1
  • Just one external reference (Newtonsoft.Json)
  • Easy installation using NuGet
  • Upload/Download tracking support
  • Proxy Support
  • Upload/Download cancellation support

List of functions:

Token

  • GetToken

Device

  • Delete
  • Create
  • Update
  • List

Channel

  • Mute
  • Leave
  • Join
  • List

Push

  • Upload
  • List
  • SendToDevice
  • SendToEmail
  • SendToChannel
  • SendToAllAppUsers
  • MarkedAsSeen
  • Delete
  • Clear

Code simple:

get access token

Dim rslt = PushbulletSDK.Authentication.GetToken("ClientID", "RedirectUrl")

set client

Dim cLENT As PushbulletSDK.IClient = New PushbulletSDK.PClient("token")

set client with proxy

Dim roxy = New BackBlazeSDK.ProxyConfig With {.ProxyIP = "172.0.0.0", .ProxyPort = 80, .ProxyUsername = "myname", .ProxyPassword = "myPass", .SetProxy = true}
Dim cLENT As PushbulletSDK.IClient = New PushbulletSDK.PClient("token",roxy)

Device


List Devices

Dim RSLT = Await cLENT.Device.List()
For Each dev In RSLT.devices
    DataGridView1.Rows.Add(dev.isExists, dev.iden, dev.manufacturer, dev.model)
Next

create new Device

Dim RSLT = Await cLENT.Device.Create("name", "win10", "micro", "1.0.0", iconEnum.desktop, Nothing)

update Device

Dim RSLT = Await cLENT.Device.Update("device ID", "name", "win10", "micro", "1.0.0", iconEnum.desktop, Nothing)

delete Device

Dim RSLT = Await cLENT.Device.Delete("device ID")

Channel


List Channels

Dim RSLT = Await cLENT.Channel.List
For Each chnl In RSLT.subscriptions
    DataGridView1.Rows.Add(chnl.isExists, chnl.iden, chnl.channel.name, chnl.channel.description, chnl.channel.tag, chnl.channel.iden)
Next

Join/UnJoin/Mute/UnMute Channel

Dim join_A_channel = Await cLENT.Channel.Join("channel tag")
Dim unjoin_A_channel = Await cLENT.Channel.Leave("channel ID")
Dim mute_unmute_channel = Await cLENT.Channel.Mute("channel ID", True)

Push


Send Push To Device

Dim psend = New PushbulletSDK.Pushes With {.note_push = New PushbulletSDK.Pushes._Note With {.title = "test titel", .body = "this is test body first time."}}
Dim RSLT = Await cLENT.Push.SendToDevice("device ID", PushTypesEnum.note, psend)
DataGridView1.Rows.Add(RSLT.isExists)

Send Push To All App Users

Dim psend = New PushbulletSDK.Pushes With {.note_push = New PushbulletSDK.Pushes._Note With {.title = "test titel", .body = "this is test body first time."}}
Dim RSLT = Await cLENT.SendToAllAppUsers("APP CLIENT ID", PushTypesEnum.note, psend)
DataGridView1.Rows.Add(RSLT.title)

Send Push To Mail

Dim psend = New PushbulletSDK.Pushes With {.note_push = New PushbulletSDK.Pushes._Note With {.title = "test titel", .body = "this is test body first time."}}
Dim RSLT = Await cLENT.Push.SendToDevice("xxxx@gmail.com", PushTypesEnum.note, psend)
DataGridView1.Rows.Add(RSLT.isExists)

Dim psend = New PushbulletSDK.Pushes With {.link_push = New PushbulletSDK.Pushes._Link With {.title = "test titel", .type = PushTypesEnum.link, .body = "look at this", .url = "https://www.youtube.com/watch?v=7b_EgKWYn5c"}}
Dim RSLT = Await cLENT.Push.SendToEmail("unlimitedillegal.tk@gmail.com", PushTypesEnum.link, psend)
DataGridView1.Rows.Add(RSLT.title, RSLT.CreatedDate)

Send Push To channel

Dim RSLT = Await cLENT.Push.SendToChannel("channel tag", PushTypesEnum.link, psend)

List Pushs

Dim RSLT = Await cLENT.Push.List(20)
For Each fold In RSLT.pushes
    DataGridView1.Rows.Add(fold.isExists, fold.iden, fold.body, fold.sender_name, fold.title, fold.type.ToString)
Next

If RSLT.HasMore Then
    Dim RSLT2 = Await cLENT.Push.ListContinue(RSLT.cursor, 20)
    For Each fold In RSLT2.pushes
        DataGridView1.Rows.Add(fold.isExists, fold.iden, fold.body, fold.sender_name, fold.title, fold.type.ToString)
    Next
End If

delete/clear/markedSeen Push

Dim RSLT = Await cLENT.Push.Delete("push id")
Dim RSLT = Await cLENT.Push.Clear()
Dim RSLT = Await cLENT.Push.Marked("push id", True)

Upload a file and get the link

Try
Dim UploadCancellationToken As New Threading.CancellationTokenSource()
Dim prog_Report As New Progress(Of PushbulletSDK.ReportStatus)(Sub(ReportClass As PushbulletSDK.ReportStatus)
         Label1.Text = String.Format("{0}/{1}", (ReportClass.BytesTransferred), (ReportClass.TotalBytes))
         ProgressBar1.Value = CInt(ReportClass.ProgressPercentage)
         Label2.Text = If(CStr(ReportClass.TextStatus) Is Nothing, "Uploading...", CStr(ReportClass.TextStatus))
         End Sub)
Dim RSLT = Await cLENT.Push.Upload("J:\New.jpg", UploadTypes.FilePath, "New.jpg", prog_Report, Nothing, UploadCancellationToken.Token)
DataGridView1.Rows.Add(RSLT)
End If
Catch ex As PushbulletSDK.PushbulletException
  MsgBox(ex.Message)
End Try
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net452 net46 net461 net462 net463 net47 net471 net472 net48 net481
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.3.2 436 3/26/2020
1.3.1 380 11/20/2019
1.3.0 425 10/7/2019
1.0.0 417 9/6/2019