Skip to main content

Developer README for the mogli adaptor

Source: https://github.com/OpenFn/adaptors/tree/main/packages/mogli

Language Mogli

Language Pack for building expressions and operations to interact with Mogli SMS.

Documentation

sample configuration

{
"username": "taylor@openfn.org",
"password": "supersecret",
"loginUrl": "https://instance_name.mogli.com",
"securityToken": "xxx123",
"secret": "abc456"
}

Create inbound SMS

createSMS(
fields(
field('sender', dataValue('from_number')),
field('receivedAt', dataValue('timestamp')),
field('message', dataValue('message'))
)
);

Development

Clone the adaptors monorepo. Follow the Getting Started guide inside to get set up.

Run tests using pnpm run test or pnpm run test:watch

Build the project using pnpm build.

To just build the docs run pnpm build docs