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

Add client of Marketing domain to handle marketing email statistics #6

Merged
merged 8 commits into from
Jun 8, 2022

Conversation

ttyfky
Copy link
Member

@ttyfky ttyfky commented May 13, 2022

  • Add marketing service
  • Add API of marketing email statistics
  • Add legacy package to handle HubSpot API v1 context
  • Add doc.go in the root and legacy package

- Add Marketing service
- Add API of marketing email statistics
- Add legacy package to handle HubSpot API v1 context
- Add doc.go in the root and legacy package
@ttyfky ttyfky requested a review from kk-no May 13, 2022 02:11
@@ -16,7 +17,7 @@ type ExampleContact struct {
}

func ExampleContactServiceOp_Create() {
cli, _ := hubspot.NewClient(hubspot.SetAPIKey("apikey"))
cli, _ := hubspot.NewClient(hubspot.SetAPIKey(os.Getenv("API_KEY")))
Copy link
Member Author

Choose a reason for hiding this comment

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

Made apikey to env var to prevent upload real apikey after testing.

- Add Marketing service
- Add API of marketing email statistics
- Add legacy package to handle HubSpot API v1 context
- Add doc.go in the root and legacy package

fix: fix test by adding ExportNewMarketing

fix: set dmmmy emailID

fix: improve struct structure
@kk-no
Copy link
Member

kk-no commented May 16, 2022

Marketingの分のテストはどのタイミングで足しますか?(後で僕の方で足すでも大丈夫です)

Copy link
Member

@kk-no kk-no left a comment

Choose a reason for hiding this comment

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

いくつかコメントしました
(構造体のフィールド名は自動生成だと思うので特に付けてません)

legacy/marketing_emails.go Outdated Show resolved Hide resolved
marketing_email.go Outdated Show resolved Hide resolved
marketing_email.go Outdated Show resolved Hide resolved
marketing_email.go Outdated Show resolved Hide resolved
@kk-no
Copy link
Member

kk-no commented May 16, 2022

あとついでに README.md の Available list も更新して貰えると助かります。。

ttyfky and others added 2 commits May 16, 2022 16:11
Co-authored-by: kei <49366645+kk-no@users.noreply.github.com>
Copy link
Member Author

@ttyfky ttyfky left a comment

Choose a reason for hiding this comment

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

  • Fixed the code as per comment
  • Add a query option for a bulk operation

marketing_email.go Outdated Show resolved Hide resolved
Copy link
Member

@kk-no kk-no left a comment

Choose a reason for hiding this comment

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

LGTM

@ttyfky ttyfky merged commit 9b2ab52 into main Jun 8, 2022
@kk-no kk-no deleted the feature/add-marketing-email-statistics branch October 25, 2022 06:54
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.

None yet

2 participants