Skip to content

oAuth API v4#1

Merged
ManuelFrigerio merged 4 commits intomasterfrom
update/ck-v4-namespace
Sep 23, 2023
Merged

oAuth API v4#1
ManuelFrigerio merged 4 commits intomasterfrom
update/ck-v4-namespace

Conversation

@risteskipetar
Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread README.md
# Convertkit V4 Ruby Client

A Ruby toolkit for [Convertkit](https://convertkit.com/) API.
A Ruby toolkit for [ConvertkitV4](https://convertkit.com/) API.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I guess this was a CTRL+F+REPLACE kind of job :)

ACCESS_TOKEN_URL = "https://app.convertkit.com/oauth/token"
REVOKE_ACCESS_URL = "https://app.convertkit.com/oauth/revoke"

def initialize(access_token: nil, refresh_token: nil, client_id: nil, client_secret: nil, redirect_uri: nil)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

whilst we are here, can we kill two birds with one stone and support for this?

Basically, we should send an "integration_key" parameter for all our API requests.

@ManuelFrigerio ManuelFrigerio merged commit 48605e4 into master Sep 23, 2023
Comment thread README.md
Comment on lines +29 to 32
ConvertkitV4.configure do |config|
config.api_secret = ENV["API_SECRET"]
config.api_key = ENV["API_KEY"]
end
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think you need to update these instructions :)

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.

2 participants