Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add basic Phan configuration * Use the Digitalist namespace instead of 'vendor' * Ensure we form the URI correctly The version shoudl be v1 instead of 1.0.0 and the leading / in the path caused guzzle to drop the v1 part, so remove that. * Latest versions of all the openapi/swagger files from SDG * Move all the generated code from the Vendor to Digitalist namespace * Ignore vim cache files * PHPStorm .idea directory at .gitignore * Regenerate SDG client with lowercase startDate/endDate parameters as the API rejects the request otherwise * Add the generated code for the feedback data. Some multiline strings in the YAML-file needed to be quoted or jane failed to parse them. * Remove leading slashes from URIs as those break the guzzle calls * Reduce duplication in SDGClient facade class * Ensure we pass back helpful return values from calling StatisticsInformation. The generated class just returns null regardless of what the API returns, which isn't great. This commit adds an override that returns the status and body. While we're adding overrides, might as well add one that strips of the leading slash from the URI, meaning we don't need to drop that manually after re-generation. Thus I'm also adding it back to the generated code. * Pass in apiKey as an argument. If we're doing reporting for several sites, we might need different api keys in the same environment, so it's better to leave it up to the caller where to get the api key. * Set correct prod url * Add method exposing the request body of StatisticsInformation requests. * test * Small note before open sourcing * Create LICENSE.md * Create LICENSE * Prep composer file for packagist (#12) * Prep composer file for packagist * Remove old reference * Update symfony/serializer 5.2.3 => 5.4.3 * Composer update. * Update Jane-php * Generate new files * Remove unused License file and add PHP requirement * Update Jane-php * Generate new files * Remove unused License file and add PHP requirement * Composer update and gitignore * Updated SDGClient and testfile * Patched generated file becuase of some bug, check patch file for more info. Following issue queue for jane-php. * Fixed guzzlehttp to correct version. * Need to use same PHP as Matomo Composer Platform specifies * Restore to a working version of sdg-php-client * Restore composer.lock to working version * No need for patch any more * Add licence to files and update readme Co-authored-by: Claes 'Letharion' Gyllensvärd <[email protected]> Co-authored-by: Alfonso <[email protected]> Co-authored-by: Toni Barberà Melià <[email protected]> Co-authored-by: Toni Barberà <[email protected]> Co-authored-by: Mikke Schirén <[email protected]>
- Loading branch information