34 linhas
909 B
PHP
34 linhas
909 B
PHP
<?php
|
|
|
|
/*
|
|
* Interweb Angola API.
|
|
*
|
|
* The address of the API is fixed. Only the key goes in .env:
|
|
*
|
|
* INTERWEB_API_KEY=sandbox_...
|
|
*
|
|
* Create the key on the API page of Meu Interweb. Start with a sandbox_ key: writes are
|
|
* simulated and nothing is charged. Then create a prod_ key with only the permissions you need.
|
|
*/
|
|
|
|
return [
|
|
|
|
'api_key' => env('INTERWEB_API_KEY'),
|
|
|
|
// Language of the error messages of the API: 'pt' or 'en'. Null: the API decides.
|
|
'language' => null,
|
|
|
|
// 'sandbox' or 'production'. When set, a key of the other mode is refused, so a
|
|
// test key never goes to production by mistake. Null: no check.
|
|
'mode' => null,
|
|
|
|
// Seconds to wait for an answer, and new attempts after 429 or 5xx.
|
|
'timeout' => 30,
|
|
'retries' => 2,
|
|
|
|
'sms' => [
|
|
// An approved sender of the account. Null: the free sender.
|
|
'sender' => null,
|
|
],
|
|
|
|
];
|