Saltar al contenido principal
Esta página no tiene versión en español, así que te la mostramos en inglés.

Config for wigal-sms

Jobs that use the wigal-sms adaptor may require authentication. A "credential" for the wigal-sms adaptor will follow the schema below. When using the CLI, you can set up your own state.configuration by using the sample below.

Sample Configuration​

Paste this into the configuration key of your state.json file and modify the values to run jobs locally.

{
"apiKey": "@some(!)apikey",
"username": "test@openfn.org"
}

Full Schema​

The full configuration schema describes each attribute of the credential and notes those that are required.

{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"baseUrl": {
"title": "Base URL",
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "The base URL (https://frogapi.wigal.com.gh)",
"format": "uri",
"minLength": 1,
"examples": [
"https://frogapi.wigal.com.gh"
]
},
"username": {
"title": "Username",
"type": "string",
"description": "Username",
"examples": [
"test@openfn.org"
]
},
"apiKey": {
"title": "API-KEY",
"type": "string",
"description": "API-KEY",
"writeOnly": true,
"examples": [
"@some(!)apikey"
]
}
},
"type": "object",
"additionalProperties": true,
"required": [
"apiKey",
"username"
]
}