You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added classes to be able to call API endpoint to validate an organisation's security certificate, and show example on how to call the API endpoint. Additionally added minor fixes for error handling in API endpoints.
The SQUIZZ.com platform's API has an endpoint that allows a variety of different types of data to be retrieved from another organisation stored on the platform.
129
130
The organisational data that can be retrieved includes products, product stock quantities, and product pricing.
130
131
The data retrieved can be used to allow an organisation to set additional information about products being bought or sold, as well as being used in many other ways.
@@ -915,13 +916,6 @@ The SQUIZZ.com platform's API will automatically expire and destory sessions tha
915
916
916
917
```php
917
918
<?php
918
-
/**
919
-
* Copyright (C) 2017 Squizz PTY LTD
920
-
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
921
-
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
922
-
* You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
1018
-
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
1019
-
* You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
### Validate Organisation Security Certificate API Session Endpoint
1091
+
1092
+
The SQUIZZ.com platform's API has an endpoint that allows a TLS security certificate created for an organisation in the platform to be validated.
1093
+
Before an organisation can download and use a security certificate the certificate must first be validated by a HTTP request calling this API endpoint.
1094
+
The endpoint will check that the originating HTTP request's IP address matches the common name set for the certificate, or that a reverse DNS lookup matches the domain set in the certificate with the originating IP address of the endpoint request.
1095
+
Read [https://www.squizz.com/docs/squizz/Platform-API.html#section842](https://www.squizz.com/docs/squizz/Platform-API.html#section843) for more documentation about the endpoint and its requirements.
1096
+
See the example below on how the call the Validate Organisation Security Certificate endpoint. Note that a session must first be created in the API before calling the endpoint.
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
5
+
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
6
+
* You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
<p>Tests making a request to the SQUIZZ.com API to create a session for an organisation, then makes a call to validate a security certificate that was created for an organisation.</p>
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
17
+
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
18
+
* You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
0 commit comments