Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
exoplatform-api-wrapper
Advanced tools
Readme
A wrapper for the API of the Open source Enterprise Social Network of eXo Platform. It covers the Social REST API, which is badly documented.
It is entirely built from TypeScript and fully tested. API responses are typed, so you can get full auto-completion in your code editor.
This project is dependency-free.
yarn add exoplatform-api-wrapper
# or
npm i exoplatform-api-wrapper
The example below shows how to get activities available in a user's feed.
import ExoPlatformWrapper from 'exoplatform-api-wrapper'
const setup = async () => {
const exoWrapper = new ExoPlatformWrapper('www.example.com')
await exoWrapper.login('myUsername', 'myPassword')
const { activities } = await exoWrapper.user.readStream()
console.log(activities)
}
setup()
See rigwild.github.io/exoplatform-api-wrapper.
Full API coverage/example is available in the automated tests: ./test/tests.ts
.
You must configure the tests by setting the following environment variables.
Environment variable | Description | Required | Default | Example |
---|---|---|---|---|
EXO_HOSTNAME | eXo Platform social network hostname (no protocol://) | ✅ | www.example.com | |
EXO_PATH | eXo Platform API path | ❌ | /rest | /exo/platform/rest |
EXO_USERNAME | eXo Platform account username | ✅ | myUser | |
EXO_PASSWORD | eXo Platform account password | ✅ | myPassword | |
EXO_SECURE_PROTOCOL | SSL protocol to use (do not touch if you don't know what it is!!) | ❌ | undefined | TLSv1_method |
EXO_CIPHERS | SSL ciphers to use (do not touch if you don't know what it is!!) | ❌ | undefined | AES128-SHA |
Then, you can run the tests:
yarn test
# or
npm run test
The author of this library is not affiliated in any way with eXo Platform.
If you found a bug or want any features not available yet, feel free to open an issue documentating the problem.
You may also contribute to the project by opening a Pull Request.
FAQs
An eXo Platform Social REST API wrapper 🧐
The npm package exoplatform-api-wrapper receives a total of 9 weekly downloads. As such, exoplatform-api-wrapper popularity was classified as not popular.
We found that exoplatform-api-wrapper 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.