|
| 1 | +<?php |
| 2 | + |
| 3 | +/** |
| 4 | + * SendinBlue API |
| 5 | + * |
| 6 | + * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | |
| 7 | + * |
| 8 | + * OpenAPI spec version: 3.0.0 |
| 9 | + |
| 10 | + * Generated by: https://github.com/swagger-api/swagger-codegen.git |
| 11 | + * |
| 12 | + */ |
| 13 | + |
| 14 | +/** |
| 15 | + * An example of a project-specific implementation. |
| 16 | + * |
| 17 | + * After registering this autoload function with SPL, the following line |
| 18 | + * would cause the function to attempt to load the \Swagger\Client\Baz\Qux class |
| 19 | + * from /path/to/project/lib/Baz/Qux.php: |
| 20 | + * |
| 21 | + * new \Swagger\Client\Baz\Qux; |
| 22 | + * |
| 23 | + * @param string $class The fully-qualified class name. |
| 24 | + * |
| 25 | + * @return void |
| 26 | + */ |
| 27 | +spl_autoload_register(function ($class) { |
| 28 | + |
| 29 | + // project-specific namespace prefix |
| 30 | + $prefix = 'Swagger\\Client\\'; |
| 31 | + |
| 32 | + // base directory for the namespace prefix |
| 33 | + $base_dir = __DIR__ . '/lib/'; |
| 34 | + |
| 35 | + // does the class use the namespace prefix? |
| 36 | + $len = strlen($prefix); |
| 37 | + if (strncmp($prefix, $class, $len) !== 0) { |
| 38 | + // no, move to the next registered autoloader |
| 39 | + return; |
| 40 | + } |
| 41 | + |
| 42 | + // get the relative class name |
| 43 | + $relative_class = substr($class, $len); |
| 44 | + |
| 45 | + // replace the namespace prefix with the base directory, replace namespace |
| 46 | + // separators with directory separators in the relative class name, append |
| 47 | + // with .php |
| 48 | + $file = $base_dir . str_replace('\\', '/', $relative_class) . '.php'; |
| 49 | + |
| 50 | + // if the file exists, require it |
| 51 | + if (file_exists($file)) { |
| 52 | + require $file; |
| 53 | + } |
| 54 | +}); |
0 commit comments