[GH-ISSUE #209] Add SMS Central (Australia) gateway support #51

Open
opened 2026-02-26 05:32:42 +03:00 by kerem · 7 comments
Owner

Originally created by @Ekwok95 on GitHub (Feb 27, 2019).
Original GitHub issue: https://github.com/nextcloud/twofactor_gateway/issues/209

Hello,
I would like to add a new SMS gateway to this application. What should I do in order to achieve this?

Originally created by @Ekwok95 on GitHub (Feb 27, 2019). Original GitHub issue: https://github.com/nextcloud/twofactor_gateway/issues/209 Hello, I would like to add a new SMS gateway to this application. What should I do in order to achieve this?
Author
Owner

@ChristophWurst commented on GitHub (Feb 27, 2019):

How custom is it? Did you write it yourself?

If it's usable for other users as well I'd suggest to add this as new SMS gateway implementation. Otherwise you'll probably have to fork this app and adjust it there.

<!-- gh-comment-id:467843252 --> @ChristophWurst commented on GitHub (Feb 27, 2019): How custom is it? Did you write it yourself? If it's usable for other users as well I'd suggest to add this as new SMS gateway implementation. Otherwise you'll probably have to fork this app and adjust it there.
Author
Owner

@Ekwok95 commented on GitHub (Feb 27, 2019):

I see. In that case I would like for the SMS gateway SMS Central (Australia) to be added as an SMS gateway implementation. This SMS gateway was not written by me but due to the limited options not being able to work for Australian numbers, I needed to find a way to add this option into this application. Apologies for not being specific with my request.

<!-- gh-comment-id:468052450 --> @Ekwok95 commented on GitHub (Feb 27, 2019): I see. In that case I would like for the SMS gateway SMS Central (Australia) to be added as an SMS gateway implementation. This SMS gateway was not written by me but due to the limited options not being able to work for Australian numbers, I needed to find a way to add this option into this application. Apologies for not being specific with my request.
Author
Owner

@ChristophWurst commented on GitHub (Feb 28, 2019):

Then I'd suggest we add this to our code base :)

Have a look at PRs like https://github.com/nextcloud/twofactor_gateway/pull/185 and https://github.com/nextcloud/twofactor_gateway/pull/169. I think it should be clear about what you have to change. Once you have some code please open a pull request and I can help you put the code into shape :)

<!-- gh-comment-id:468182778 --> @ChristophWurst commented on GitHub (Feb 28, 2019): Then I'd suggest we add this to our code base :) Have a look at PRs like https://github.com/nextcloud/twofactor_gateway/pull/185 and https://github.com/nextcloud/twofactor_gateway/pull/169. I think it should be clear about what you have to change. Once you have some code please open a pull request and I can help you put the code into shape :)
Author
Owner

@Ekwok95 commented on GitHub (Feb 28, 2019):

Cool thanks. I'll get started on this.

<!-- gh-comment-id:468243370 --> @Ekwok95 commented on GitHub (Feb 28, 2019): Cool thanks. I'll get started on this.
Author
Owner

@Ekwok95 commented on GitHub (Mar 1, 2019):

Hey Chris, for the Config.php file for the provider, and the provider.php files seem like they are taking in values for API POST requests. Am I right? According to SMSCentral API documentation, it seems that 5 type of values are needed to be sent to the URL for the API calls. I'm not sure where to include these values in those 2 files.

The 5 parameters are as follows:

  • USERNAME
  • PASSWORD
  • ACTION - I believe this only requires one value which is 'send' from what I read in the API documentation.
  • RECIPIENT
  • MESSAGE_TEXT
<!-- gh-comment-id:468666214 --> @Ekwok95 commented on GitHub (Mar 1, 2019): Hey Chris, for the Config.php file for the provider, and the provider.php files seem like they are taking in values for API POST requests. Am I right? According to SMSCentral API documentation, it seems that 5 type of values are needed to be sent to the URL for the API calls. I'm not sure where to include these values in those 2 files. The 5 parameters are as follows: - USERNAME - PASSWORD - ACTION - I believe this only requires one value which is 'send' from what I read in the API documentation. - RECIPIENT - MESSAGE_TEXT
Author
Owner

@Ekwok95 commented on GitHub (Mar 1, 2019):

Also, this is the first time I've used Github to commit code to someone else's application. How do I upload the code here or send it here for review?

<!-- gh-comment-id:468667411 --> @Ekwok95 commented on GitHub (Mar 1, 2019): Also, this is the first time I've used Github to commit code to someone else's application. How do I upload the code here or send it here for review?
Author
Owner

@ChristophWurst commented on GitHub (Mar 1, 2019):

Looks like username and password go into the provider config class, action is static and recipient and text get passed into the gateway just like with the other implementations.

The workflow is that you create your fork, create a new branch, commit to that branch, push it back to github and open a pull request here. I think this is well documented on GitHub's help pages: https://help.github.com/en/articles/creating-a-pull-request-from-a-fork

<!-- gh-comment-id:468699266 --> @ChristophWurst commented on GitHub (Mar 1, 2019): Looks like username and password go into the provider config class, action is static and recipient and text get passed into the gateway just like with the other implementations. The workflow is that you create your fork, create a new branch, commit to that branch, push it back to github and open a pull request here. I think this is well documented on GitHub's help pages: https://help.github.com/en/articles/creating-a-pull-request-from-a-fork
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/twofactor_gateway-nextcloud#51
No description provided.