nexmo.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | API Credentials
  6. |--------------------------------------------------------------------------
  7. |
  8. | If you're using API credentials, change these settings. Get your
  9. | credentials from https://dashboard.nexmo.com | 'Settings'.
  10. |
  11. */
  12. 'api_key' => function_exists('env') ? env('NEXMO_KEY', '') : '',
  13. 'api_secret' => function_exists('env') ? env('NEXMO_SECRET', '') : '',
  14. /*
  15. |--------------------------------------------------------------------------
  16. | Signature Secret
  17. |--------------------------------------------------------------------------
  18. |
  19. | If you're using a signature secret, use this section. This can be used
  20. | without an `api_secret` for some APIs, as well as with an `api_secret`
  21. | for all APIs.
  22. |
  23. */
  24. 'signature_secret' => function_exists('env') ? env('NEXMO_SIGNATURE_SECRET', '') : '',
  25. /*
  26. |--------------------------------------------------------------------------
  27. | Private Key
  28. |--------------------------------------------------------------------------
  29. |
  30. | Private keys are used to generate JWTs for authentication. Generation is
  31. | handled by the library. JWTs are required for newer APIs, such as voice
  32. | and media
  33. |
  34. */
  35. 'private_key' => function_exists('env') ? env('NEXMO_PRIVATE_KEY', '') : '',
  36. 'application_id' => function_exists('env') ? env('NEXMO_APPLICATION_ID', '') : '',
  37. /*
  38. |--------------------------------------------------------------------------
  39. | Application Identifiers
  40. |--------------------------------------------------------------------------
  41. |
  42. | Add an application name and version here to identify your application when
  43. | making API calls
  44. |
  45. */
  46. 'app' => ['name' => function_exists('env') ? env('NEXMO_APP_NAME', 'NexmoLaravel') : 'NexmoLaravel',
  47. 'version' => function_exists('env') ? env('NEXMO_APP_VERSION', '1.1.2') : '1.1.2'],
  48. /*
  49. |--------------------------------------------------------------------------
  50. | Client Override
  51. |--------------------------------------------------------------------------
  52. |
  53. | In the event you need to use this with nexmo/client-core, this can be set
  54. | to provide a custom HTTP client.
  55. |
  56. */
  57. 'http_client' => function_exists('env') ? env('NEXMO_HTTP_CLIENT', '') : '',
  58. ];