
Security News
Opengrep Adds Apex Support and New Rule Controls in Latest Updates
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
This package adds quality of live improvements when working with the SAMS-Server of the German Volleyball Association. http://wiki.sams-server.de/wiki/XML-Schnittstelle
The SAMS server only offers XML responses, no JSON. It currently also lacks documentation of the response structure.
This package fixes both aspects. It makes the fetch call to the server, parses the XML into JSON, validates the data and then returns the data to you. It comes with TypeScript definitions and Zod schemas for you to use across your app.
fetch > parse > validate > return
API key
.See the SAMS-Wiki for your point of contacts and review the rate limits associated with your key.
Install the package using your favorite package manager. e.g.:
npm install sams-rpc
bun install sams-rpc
Add your API key and SAMS Server as environmental variables. This step is optional and allows you to omit the parameters from the funcitons.
SAMS_API_KEY=YourApiKey
SAMS_SERVER=https://www.volleyball-baden.de
If you are not setting the environmental variables or cannot read them, you must add the values to the parameter.
// with .env
sams.sportsclubList();
// without .env
sams.sportsclubList({ apiKey: "YourApiKey", serverUrl: "https://www.volleyball-baden.de" });
"As a club member, I want to locate my club and retrieve all of our teams."
// import the module
import { sams } from "sams-rpc";
// make a call to get all clubs
const clubs = await sams.sportsclubList();
// now you can locate your own club …
const filteredClub = clubs.filter((club) => club.name == "VC Müllheim");
// … and extract data such as name and id
const name = myClub.name; // "VC Müllheim"
const id = myClub.id; // 65036648
Now that we have the club ID, we can use it to get more information.
// retrieved the full club data including its teams
const ourClub = await sams.sportsclub({ sportsclubId: 65036648 });
// use the team array
const ourTeams = ourClub.teams;
Knowing the match series ID and the team ID, we can use it in further calls. For example to get the team's ranking or upcoming scheduled matches.
This list contains all clubs stored in the database. For each club only basic data is included such as name, id and association.
Using the club ID (optained from Sportsclub List), this api provides all data about the club, such as locations, logo, homepage and all teams and their data (e.g. team ID).
Returns a list of all available seasons. The season ID can be used for Match Series overview to access historical data.
Displays all available leagues and competitions with their IDs (matchSeriesId). Match series IDs are season-specific, while allSeasonMatchSeriesId (available since 2016) works across seasons and always returns current season data. The UUIDs are unique across all SAMS databases.
Note: This is the only api which doesn't have a rate limit! ☝️
Parameters structureUpdated and resultsUpdated indicate when changes were made to structure (schedule, dates) or results.
Get the rankings of a particular Match Series. It includes the place, wins & losses, points, etc.
This gets all teams of a particular Match Series. The team object is identical to the team object you get from the sportsclub.
This api allows you to fetch specific matches. Key filters are Match Series or Team.
More optional parameters:
before
parameter and shows all past games if the parameter is set to "true" (e.g., past=true)limit=
, you can limit the number of results (e.g., future=true&limit=3, shows the next 3 games).FAQs
Type-safe RPC for interacting with the SAMS-Server XML API.
We found that sams-rpc 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 latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.