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

ringring init #16

Merged
merged 4 commits into from
Feb 6, 2024
Merged

ringring init #16

merged 4 commits into from
Feb 6, 2024

Conversation

jirihofman
Copy link
Member

@jirihofman jirihofman commented Jan 29, 2024

Issue: https://github.com/clientIO/appmixer-components/issues/1661

Done

  • Send SMS
  • correctly format and process timeScheduled and timeValidity

Notes

  1. There is no auth.js file. The apiKey needs to be a part of the body of the POST request to /sms/v1/message. Due to this, there is no authentication section for the component. Appmixer is not keeping track of any connected accounts.
  2. I used demo account
image

@jirihofman jirihofman self-assigned this Jan 29, 2024
@jirihofman jirihofman marked this pull request as ready for review January 29, 2024 15:17
@jirihofman jirihofman requested review from vtalas and harshaio January 29, 2024 15:17
const headers = {};

const inputMapping = {
'apiKey': input['apiKey'],
Copy link
Contributor

Choose a reason for hiding this comment

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

I noticed that the apikey is present in this file. Could you please move it to the auth.js file?

Copy link
Member Author

Choose a reason for hiding this comment

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

Please see https://github.com/clientIO/appmixer-components/issues/1661#issuecomment-1914767748 where I mentioned this. The problem is that OpenAPI spec doesn't support apiKey in body.

Copy link
Contributor

Choose a reason for hiding this comment

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

Before releasing the generator, we need to improve it or change the code.

Copy link
Member Author

Choose a reason for hiding this comment

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

Based on today's discussion we don't need to do any changes to the generator. When specified like this with apiKey in body we simply won't use Authentication section for the component.

@vtalas vtalas merged commit 3909555 into clientIO:dev Feb 6, 2024
1 check passed
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