Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(php): Add remaining php clients #106

Merged

Conversation

damcou
Copy link
Contributor

@damcou damcou commented Jan 25, 2022

🧭 What and Why

🎟 JIRA Ticket: APIC-273

Changes included:

  • Added Configuration automation
  • Added Cache usage automation
  • Added PHP Recommend Client
  • Added PHP Analytics Client
  • Added PHP AB Testing Client
  • Added PHP Insights Client
  • Added PHP Personalization Client
  • Added PHP QS Client
  • Added playgrounds

@damcou damcou changed the base branch from main to feat/APIC-238/add-php-client January 25, 2022 17:04
@damcou damcou changed the title featphp): Add remaining php clients feat(php): Add remaining php clients Jan 25, 2022
@damcou damcou marked this pull request as draft January 25, 2022 17:07
@damcou damcou marked this pull request as ready for review January 26, 2022 16:39
@damcou damcou requested a review from millotp January 26, 2022 16:39
Copy link
Collaborator

@millotp millotp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like a lot of code can be simplified still, but massive work !

@@ -60,6 +60,14 @@ class Configuration extends AbstractConfig
*/
protected $tempFolderPath;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can remove this as we won't deal with file download

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The method getTempFolderPath() is used in the ObjectSerializer class (in the deserialize() method)

openapitools.json Outdated Show resolved Hide resolved
@damcou damcou requested a review from millotp January 28, 2022 15:49
@damcou damcou requested a review from shortcuts January 31, 2022 10:36
@damcou damcou requested a review from millotp February 1, 2022 13:36
Copy link
Collaborator

@millotp millotp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good ! Small comment that you can ignore

];

public static function create($appId = null, $apiKey = null, $region = null)
public static function create($appId = null, $apiKey = null, $region = null, $allowedRegions = null)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could store the allowedRegions in the object to check against later in the setRegion method

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually you can't because create() is a static method. But anyways, I just saw that setRegion() is not used anywhere

Copy link
Collaborator

@millotp millotp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's one way to do it

@damcou damcou merged commit 324e4d8 into feat/APIC-238/add-php-client Feb 1, 2022
@damcou damcou deleted the feat/APIC-273/add-remaining-php-clients branch February 1, 2022 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants