Skip to content

Commit

Permalink
feat: rewrite request logic
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Request logic is rewritten, Upgraded minimum php version to 8.1
  • Loading branch information
Orkuncakilkaya committed Jul 15, 2024
1 parent ec7c274 commit 0016822
Show file tree
Hide file tree
Showing 9 changed files with 149 additions and 783 deletions.
4 changes: 3 additions & 1 deletion .swagger-codegen-ignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ src/phpunit.xml.dist
src/.travis.yml
src/.php_cs
src/git_push.sh
src/test/**
src/test/**
src/Api/FingerprintApi.php
src/HeaderSelector.php
74 changes: 74 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,83 @@ All URIs are relative to your region's base URL.

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*FingerprintApi* | [**getEvent**](docs/Api/FingerprintApi.md#getevent) | **GET** /events/{request_id} | Get event by requestId
*FingerprintApi* | [**getVisits**](docs/Api/FingerprintApi.md#getvisits) | **GET** /visitors/{visitor_id} | Get visits by visitorId

## Documentation for Models

- [ASN](docs/Model/ASN.md)
- [BotdDetectionResult](docs/Model/BotdDetectionResult.md)
- [BotdResult](docs/Model/BotdResult.md)
- [BrowserDetails](docs/Model/BrowserDetails.md)
- [ClonedAppResult](docs/Model/ClonedAppResult.md)
- [Confidence](docs/Model/Confidence.md)
- [DataCenter](docs/Model/DataCenter.md)
- [DeprecatedIPLocation](docs/Model/DeprecatedIPLocation.md)
- [DeprecatedIPLocationCity](docs/Model/DeprecatedIPLocationCity.md)
- [EmulatorResult](docs/Model/EmulatorResult.md)
- [ErrorEvent403Response](docs/Model/ErrorEvent403Response.md)
- [ErrorEvent403ResponseError](docs/Model/ErrorEvent403ResponseError.md)
- [ErrorEvent404Response](docs/Model/ErrorEvent404Response.md)
- [ErrorEvent404ResponseError](docs/Model/ErrorEvent404ResponseError.md)
- [ErrorVisits403](docs/Model/ErrorVisits403.md)
- [EventResponse](docs/Model/EventResponse.md)
- [FactoryResetResult](docs/Model/FactoryResetResult.md)
- [FridaResult](docs/Model/FridaResult.md)
- [HighActivityResult](docs/Model/HighActivityResult.md)
- [IPLocation](docs/Model/IPLocation.md)
- [IPLocationCity](docs/Model/IPLocationCity.md)
- [IdentificationError](docs/Model/IdentificationError.md)
- [IncognitoResult](docs/Model/IncognitoResult.md)
- [IpBlockListResult](docs/Model/IpBlockListResult.md)
- [IpBlockListResultDetails](docs/Model/IpBlockListResultDetails.md)
- [IpInfoResult](docs/Model/IpInfoResult.md)
- [IpInfoResultV4](docs/Model/IpInfoResultV4.md)
- [IpInfoResultV6](docs/Model/IpInfoResultV6.md)
- [JailbrokenResult](docs/Model/JailbrokenResult.md)
- [Location](docs/Model/Location.md)
- [LocationSpoofingResult](docs/Model/LocationSpoofingResult.md)
- [ManyRequestsResponse](docs/Model/ManyRequestsResponse.md)
- [PrivacySettingsResult](docs/Model/PrivacySettingsResult.md)
- [ProductError](docs/Model/ProductError.md)
- [ProductsResponse](docs/Model/ProductsResponse.md)
- [ProductsResponseBotd](docs/Model/ProductsResponseBotd.md)
- [ProductsResponseIdentification](docs/Model/ProductsResponseIdentification.md)
- [ProductsResponseIdentificationData](docs/Model/ProductsResponseIdentificationData.md)
- [ProxyResult](docs/Model/ProxyResult.md)
- [RawDeviceAttributesResult](docs/Model/RawDeviceAttributesResult.md)
- [Response](docs/Model/Response.md)
- [ResponseVisits](docs/Model/ResponseVisits.md)
- [RootAppsResult](docs/Model/RootAppsResult.md)
- [SeenAt](docs/Model/SeenAt.md)
- [SignalResponseClonedApp](docs/Model/SignalResponseClonedApp.md)
- [SignalResponseEmulator](docs/Model/SignalResponseEmulator.md)
- [SignalResponseFactoryReset](docs/Model/SignalResponseFactoryReset.md)
- [SignalResponseFrida](docs/Model/SignalResponseFrida.md)
- [SignalResponseHighActivity](docs/Model/SignalResponseHighActivity.md)
- [SignalResponseIncognito](docs/Model/SignalResponseIncognito.md)
- [SignalResponseIpBlocklist](docs/Model/SignalResponseIpBlocklist.md)
- [SignalResponseIpInfo](docs/Model/SignalResponseIpInfo.md)
- [SignalResponseJailbroken](docs/Model/SignalResponseJailbroken.md)
- [SignalResponseLocationSpoofing](docs/Model/SignalResponseLocationSpoofing.md)
- [SignalResponsePrivacySettings](docs/Model/SignalResponsePrivacySettings.md)
- [SignalResponseProxy](docs/Model/SignalResponseProxy.md)
- [SignalResponseRawDeviceAttributes](docs/Model/SignalResponseRawDeviceAttributes.md)
- [SignalResponseRootApps](docs/Model/SignalResponseRootApps.md)
- [SignalResponseSuspectScore](docs/Model/SignalResponseSuspectScore.md)
- [SignalResponseTampering](docs/Model/SignalResponseTampering.md)
- [SignalResponseTor](docs/Model/SignalResponseTor.md)
- [SignalResponseVirtualMachine](docs/Model/SignalResponseVirtualMachine.md)
- [SignalResponseVpn](docs/Model/SignalResponseVpn.md)
- [Subdivision](docs/Model/Subdivision.md)
- [SuspectScoreResult](docs/Model/SuspectScoreResult.md)
- [TamperingResult](docs/Model/TamperingResult.md)
- [TorResult](docs/Model/TorResult.md)
- [VirtualMachineResult](docs/Model/VirtualMachineResult.md)
- [Visit](docs/Model/Visit.md)
- [VpnResult](docs/Model/VpnResult.md)
- [VpnResultMethods](docs/Model/VpnResultMethods.md)
- [WebhookVisit](docs/Model/WebhookVisit.md)

## Documentation for Authorization

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
}
],
"require": {
"php": ">=7.1",
"php": ">=8.1",
"ext-curl": "*",
"ext-json": "*",
"ext-mbstring": "*",
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ services:
volumes:
- ./:/app
php:
image: php:7.2-cli
image: php:8.1-cli
volumes:
- ./:/app
working_dir: /app
env_file:
- .env
phpunit:
image: php:7.2-cli
image: php:8.1-cli
volumes:
- ./:/app
working_dir: /app
Expand Down
3 changes: 1 addition & 2 deletions scripts/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ platform=$(uname)
# clean models before generating
rm -f ./src/Model/*

java -jar ./bin/swagger-codegen-cli.jar generate -t ./template -l php -i ./res/fingerprint-server-api.yaml -o ./ -c config.json -Dmodels
java -jar ./bin/swagger-codegen-cli.jar generate -t ./template -l php -i ./res/fingerprint-server-api.yaml -o ./ -c config.json -DsupportingFiles
java -jar ./bin/swagger-codegen-cli.jar generate -t ./template -l php -i ./res/fingerprint-server-api.yaml -o ./ -c config.json

# fix invalid code generated for structure with additionalProperties
(
Expand Down
Loading

0 comments on commit 0016822

Please sign in to comment.