
Security News
npm ‘is’ Package Hijacked in Expanding Supply Chain Attack
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
RarelySimple.AvatarScriptLink
Advanced tools
AvatarScriptLink.NET is a library for accelerating Netsmart myAvatar ScriptLink API development.
Essentially, AvatarScriptLink.NET is a framework for managing and manipulating myAvatar ScriptLink OptionObjects. What it does is accelerate the development of clean and stable myAvatar ScriptLink-compatible APIs.
Most ScriptLink-compatible APIs are built with a local version of the NTST.ScriptLinkService.Objects library. Here's what a "Hello, World!" response might look like in this scenario.
[WebMethod]
public OptionObject RunScript(OptionObject optionObject, string parameter)
{
OptionObject returnOptionObject = new OptionObject();
returnOptionObject.ErrorCode = 3;
returnOptionObject.ErrorMesg = "Hello, World!";
returnOptionObject.EntityID = optionObject.EntityID;
returnOptionObject.EpisodeNumber = optionObject.EpisodeNumber;
returnOptionObject.Facility = optionObject.Facility;
returnOptionObject.OptionId = optionObject.OptionId;
returnOptionObject.OptionStaffId = optionObject.OptionStaffId;
returnOptionObject.OptionUserId = optionObject.OptionUserId;
returnOptionObject.SystemCode = optionObject.SystemCode;
return returnOptionObject;
}
With AvatarScriptLink.NET, this same code can be simplified to:
[WebMethod]
public OptionObject RunScript(OptionObject optionObject, string parameter)
{
return optionObject.ToReturnOptionObject(ErrorCode.Informational, "Hello, World!");
}
Likewise, to bring this same API up to the latest OptionObject version doesn't require accounting for the new properties. Just update the OptionObject version and import the new/updated WSDL into myAvatar.
[WebMethod]
public OptionObject2015 RunScript(OptionObject2015 optionObject, string parameter)
{
return optionObject.ToReturnOptionObject(ErrorCode.Informational, "Hello, World!");
}
Check out the documentation to learn more.
AvatarScriptLink.NET is open source under the MIT License and free for commercial use.
FAQs
AvatarScriptLink.NET is a library for accelerating Netsmart myAvatar ScriptLink API development.
We found that rarelysimple.avatarscriptlink demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Security News
A critical flaw in the popular npm form-data package could allow HTTP parameter pollution, affecting millions of projects until patched versions are adopted.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.