
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Line.Notify.Api.Client
Advanced tools
This is a .NET6 library for interacting with the LINE Notify Api.
dotnet add package Line.Notify.Api.Client
{
"Line": {
"Notify": {
"BaseUrl": "https://notify-api.line.me",
"AuthToken": "YOUR_LINE_AUTH_TOKEN"
}
}
}
using Line.Notify.Api.Client.Extensions;
ConfigureServices(IServiceCollection services, IConfiguration configuration)
{
// this injects as SINGLETON
services.AddLineNotifyApiServices(configuration);
// you can also inject as SCOPED or TRANSIENT by specifying the ServiceLifetime
services.AddLineNotifyApiServices(configuration, ServiceLifetime.Scoped);
}
using Line.Notify.Api.Client.Interfaces;
using Line.Notify.Api.Client.Services;
using Line.Notify.Api.Client.Models.Requests;
public class MyProcess
{
private readonly INotifyService _notifyService;
public MyProcess(INotifyService notifyService) =>
_notifyService = notifyService;
public async Task NotifyAsync()
{
// use the default token from appsettings.json
var result = await _notifyService.NotifyAsync(new MessageModel
{
Message = "Test message"
});
// or pass in another token so you can send notification to multiple LINE account at the same time
var dynamicTokenResult = await _notifyService.NotifyAsync(
new MessageModel
{
Message = "Test message"
},
"MyAuthToken");
}
}
FAQs
A nuget package for LINE Notify Api client using .NET6
We found that line.notify.api.client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.