messente_api 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (133) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/Gemfile.lock +79 -0
  4. data/README.md +118 -0
  5. data/Rakefile +10 -0
  6. data/docs/BlacklistApi.md +209 -0
  7. data/docs/Channel.md +16 -0
  8. data/docs/ContactEnvelope.md +17 -0
  9. data/docs/ContactFields.md +35 -0
  10. data/docs/ContactListEnvelope.md +17 -0
  11. data/docs/ContactUpdateFields.md +33 -0
  12. data/docs/ContactsApi.md +430 -0
  13. data/docs/DeliveryReportApi.md +60 -0
  14. data/docs/DeliveryReportResponse.md +21 -0
  15. data/docs/DeliveryResult.md +27 -0
  16. data/docs/ErrorCodeOmnichannel.md +16 -0
  17. data/docs/ErrorCodeOmnichannelMachine.md +16 -0
  18. data/docs/ErrorCodePhonebook.md +16 -0
  19. data/docs/ErrorItemOmnichannel.md +23 -0
  20. data/docs/ErrorItemPhonebook.md +21 -0
  21. data/docs/ErrorOmnichannel.md +17 -0
  22. data/docs/ErrorPhonebook.md +17 -0
  23. data/docs/ErrorTitleOmnichannel.md +16 -0
  24. data/docs/ErrorTitlePhonebook.md +16 -0
  25. data/docs/FetchBlacklistSuccess.md +17 -0
  26. data/docs/GroupEnvelope.md +17 -0
  27. data/docs/GroupListEnvelope.md +17 -0
  28. data/docs/GroupName.md +17 -0
  29. data/docs/GroupResponseFields.md +23 -0
  30. data/docs/GroupsApi.md +265 -0
  31. data/docs/MessageResult.md +21 -0
  32. data/docs/NumberToBlacklist.md +17 -0
  33. data/docs/OmniMessageCreateSuccessResponse.md +21 -0
  34. data/docs/Omnimessage.md +25 -0
  35. data/docs/OmnimessageApi.md +111 -0
  36. data/docs/SMS.md +27 -0
  37. data/docs/Status.md +16 -0
  38. data/docs/TextStore.md +16 -0
  39. data/docs/Viber.md +29 -0
  40. data/docs/WhatsApp.md +29 -0
  41. data/docs/WhatsAppAudio.md +17 -0
  42. data/docs/WhatsAppDocument.md +19 -0
  43. data/docs/WhatsAppImage.md +19 -0
  44. data/docs/WhatsAppText.md +19 -0
  45. data/git_push.sh +55 -0
  46. data/lib/messente_api.rb +78 -0
  47. data/lib/messente_api/api/blacklist_api.rb +258 -0
  48. data/lib/messente_api/api/contacts_api.rb +521 -0
  49. data/lib/messente_api/api/delivery_report_api.rb +82 -0
  50. data/lib/messente_api/api/groups_api.rb +326 -0
  51. data/lib/messente_api/api/omnimessage_api.rb +144 -0
  52. data/lib/messente_api/api_client.rb +387 -0
  53. data/lib/messente_api/api_error.rb +57 -0
  54. data/lib/messente_api/configuration.rb +251 -0
  55. data/lib/messente_api/models/channel.rb +37 -0
  56. data/lib/messente_api/models/contact_envelope.rb +196 -0
  57. data/lib/messente_api/models/contact_fields.rb +283 -0
  58. data/lib/messente_api/models/contact_list_envelope.rb +198 -0
  59. data/lib/messente_api/models/contact_update_fields.rb +268 -0
  60. data/lib/messente_api/models/delivery_report_response.rb +234 -0
  61. data/lib/messente_api/models/delivery_result.rb +244 -0
  62. data/lib/messente_api/models/error_code_omnichannel.rb +41 -0
  63. data/lib/messente_api/models/error_code_omnichannel_machine.rb +46 -0
  64. data/lib/messente_api/models/error_code_phonebook.rb +40 -0
  65. data/lib/messente_api/models/error_item_omnichannel.rb +245 -0
  66. data/lib/messente_api/models/error_item_phonebook.rb +230 -0
  67. data/lib/messente_api/models/error_omnichannel.rb +203 -0
  68. data/lib/messente_api/models/error_phonebook.rb +203 -0
  69. data/lib/messente_api/models/error_title_omnichannel.rb +41 -0
  70. data/lib/messente_api/models/error_title_phonebook.rb +40 -0
  71. data/lib/messente_api/models/fetch_blacklist_success.rb +198 -0
  72. data/lib/messente_api/models/group_envelope.rb +196 -0
  73. data/lib/messente_api/models/group_list_envelope.rb +198 -0
  74. data/lib/messente_api/models/group_name.rb +220 -0
  75. data/lib/messente_api/models/group_response_fields.rb +240 -0
  76. data/lib/messente_api/models/message_result.rb +231 -0
  77. data/lib/messente_api/models/number_to_blacklist.rb +202 -0
  78. data/lib/messente_api/models/omni_message_create_success_response.rb +234 -0
  79. data/lib/messente_api/models/omnimessage.rb +247 -0
  80. data/lib/messente_api/models/sms.rb +300 -0
  81. data/lib/messente_api/models/status.rb +45 -0
  82. data/lib/messente_api/models/text_store.rb +37 -0
  83. data/lib/messente_api/models/viber.rb +293 -0
  84. data/lib/messente_api/models/whats_app.rb +289 -0
  85. data/lib/messente_api/models/whats_app_audio.rb +202 -0
  86. data/lib/messente_api/models/whats_app_document.rb +212 -0
  87. data/lib/messente_api/models/whats_app_image.rb +212 -0
  88. data/lib/messente_api/models/whats_app_text.rb +214 -0
  89. data/lib/messente_api/version.rb +15 -0
  90. data/messente_api.gemspec +45 -0
  91. data/spec/api/blacklist_api_spec.rb +78 -0
  92. data/spec/api/contacts_api_spec.rb +126 -0
  93. data/spec/api/delivery_report_api_spec.rb +46 -0
  94. data/spec/api/groups_api_spec.rb +90 -0
  95. data/spec/api/omnimessage_api_spec.rb +57 -0
  96. data/spec/api_client_spec.rb +226 -0
  97. data/spec/configuration_spec.rb +42 -0
  98. data/spec/models/channel_spec.rb +35 -0
  99. data/spec/models/contact_envelope_spec.rb +41 -0
  100. data/spec/models/contact_fields_spec.rb +95 -0
  101. data/spec/models/contact_list_envelope_spec.rb +41 -0
  102. data/spec/models/contact_update_fields_spec.rb +89 -0
  103. data/spec/models/delivery_report_response_spec.rb +53 -0
  104. data/spec/models/delivery_result_spec.rb +71 -0
  105. data/spec/models/error_code_omnichannel_machine_spec.rb +35 -0
  106. data/spec/models/error_code_omnichannel_spec.rb +35 -0
  107. data/spec/models/error_code_phonebook_spec.rb +35 -0
  108. data/spec/models/error_item_omnichannel_spec.rb +59 -0
  109. data/spec/models/error_item_phonebook_spec.rb +53 -0
  110. data/spec/models/error_omnichannel_spec.rb +41 -0
  111. data/spec/models/error_phonebook_spec.rb +41 -0
  112. data/spec/models/error_title_omnichannel_spec.rb +35 -0
  113. data/spec/models/error_title_phonebook_spec.rb +35 -0
  114. data/spec/models/fetch_blacklist_success_spec.rb +41 -0
  115. data/spec/models/group_envelope_spec.rb +41 -0
  116. data/spec/models/group_list_envelope_spec.rb +41 -0
  117. data/spec/models/group_name_spec.rb +41 -0
  118. data/spec/models/group_response_fields_spec.rb +59 -0
  119. data/spec/models/message_result_spec.rb +53 -0
  120. data/spec/models/number_to_blacklist_spec.rb +41 -0
  121. data/spec/models/omni_message_create_success_response_spec.rb +53 -0
  122. data/spec/models/omnimessage_spec.rb +65 -0
  123. data/spec/models/sms_spec.rb +79 -0
  124. data/spec/models/status_spec.rb +35 -0
  125. data/spec/models/text_store_spec.rb +35 -0
  126. data/spec/models/viber_spec.rb +81 -0
  127. data/spec/models/whats_app_audio_spec.rb +41 -0
  128. data/spec/models/whats_app_document_spec.rb +47 -0
  129. data/spec/models/whats_app_image_spec.rb +47 -0
  130. data/spec/models/whats_app_spec.rb +81 -0
  131. data/spec/models/whats_app_text_spec.rb +47 -0
  132. data/spec/spec_helper.rb +111 -0
  133. metadata +401 -0
@@ -0,0 +1,21 @@
1
+ # MessenteApi::MessageResult
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **message_id** | **String** | Unique identifier for the message |
8
+ **channel** | [**Channel**](Channel.md) | |
9
+ **sender** | **String** | Sender that was used for the message |
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'MessenteApi'
15
+
16
+ instance = MessenteApi::MessageResult.new(message_id: null,
17
+ channel: null,
18
+ sender: null)
19
+ ```
20
+
21
+
@@ -0,0 +1,17 @@
1
+ # MessenteApi::NumberToBlacklist
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **phone_number** | **String** | Phone number in e.164 format |
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'MessenteApi'
13
+
14
+ instance = MessenteApi::NumberToBlacklist.new(phone_number: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,21 @@
1
+ # MessenteApi::OmniMessageCreateSuccessResponse
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **messages** | [**Array<MessageResult>**](MessageResult.md) | List of messages that compose the Omnimessage |
8
+ **to** | **String** | Phone number in e.164 format |
9
+ **omnimessage_id** | **String** | Unique identifier for the Omnimessage |
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'MessenteApi'
15
+
16
+ instance = MessenteApi::OmniMessageCreateSuccessResponse.new(messages: null,
17
+ to: null,
18
+ omnimessage_id: null)
19
+ ```
20
+
21
+
@@ -0,0 +1,25 @@
1
+ # MessenteApi::Omnimessage
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **to** | **String** | Phone number in e.164 format |
8
+ **messages** | [**Array<OneOfViberSMSWhatsApp>**](OneOfViberSMSWhatsApp.md) | |
9
+ **dlr_url** | **String** | URL where the delivery report will be sent | [optional]
10
+ **text_store** | [**TextStore**](TextStore.md) | | [optional]
11
+ **time_to_send** | **DateTime** | Optional parameter for sending messages at some specific time in the future. Time must be specified in the ISO-8601 format. If no timezone is specified, then the timezone is assumed to be UTC. Examples: * Time specified with timezone: 2018-06-22T09:05:07+00:00 Time specified in UTC: 2018-06-22T09:05:07Z * Time specified without timezone: 2018-06-22T09:05 (equivalent to 2018-06-22T09:05+00:00) | [optional]
12
+
13
+ ## Code Sample
14
+
15
+ ```ruby
16
+ require 'MessenteApi'
17
+
18
+ instance = MessenteApi::Omnimessage.new(to: null,
19
+ messages: null,
20
+ dlr_url: null,
21
+ text_store: null,
22
+ time_to_send: null)
23
+ ```
24
+
25
+
@@ -0,0 +1,111 @@
1
+ # MessenteApi::OmnimessageApi
2
+
3
+ All URIs are relative to *https://api.messente.com/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**cancel_scheduled_message**](OmnimessageApi.md#cancel_scheduled_message) | **DELETE** /omnimessage/{omnimessageId} | Cancels a scheduled Omnimessage.
8
+ [**send_omnimessage**](OmnimessageApi.md#send_omnimessage) | **POST** /omnimessage | Sends an Omnimessage.
9
+
10
+
11
+
12
+ ## cancel_scheduled_message
13
+
14
+ > cancel_scheduled_message(omnimessage_id)
15
+
16
+ Cancels a scheduled Omnimessage.
17
+
18
+ ### Example
19
+
20
+ ```ruby
21
+ # load the gem
22
+ require 'messente_api'
23
+ # setup authorization
24
+ MessenteApi.configure do |config|
25
+ # Configure HTTP basic authorization: basicAuth
26
+ config.username = 'YOUR USERNAME'
27
+ config.password = 'YOUR PASSWORD'
28
+ end
29
+
30
+ api_instance = MessenteApi::OmnimessageApi.new
31
+ omnimessage_id = 'omnimessage_id_example' # String | UUID of the scheduled Omnimessage to be cancelled
32
+
33
+ begin
34
+ #Cancels a scheduled Omnimessage.
35
+ api_instance.cancel_scheduled_message(omnimessage_id)
36
+ rescue MessenteApi::ApiError => e
37
+ puts "Exception when calling OmnimessageApi->cancel_scheduled_message: #{e}"
38
+ end
39
+ ```
40
+
41
+ ### Parameters
42
+
43
+
44
+ Name | Type | Description | Notes
45
+ ------------- | ------------- | ------------- | -------------
46
+ **omnimessage_id** | [**String**](.md)| UUID of the scheduled Omnimessage to be cancelled |
47
+
48
+ ### Return type
49
+
50
+ nil (empty response body)
51
+
52
+ ### Authorization
53
+
54
+ [basicAuth](../README.md#basicAuth)
55
+
56
+ ### HTTP request headers
57
+
58
+ - **Content-Type**: Not defined
59
+ - **Accept**: application/json
60
+
61
+
62
+ ## send_omnimessage
63
+
64
+ > OmniMessageCreateSuccessResponse send_omnimessage(omnimessage)
65
+
66
+ Sends an Omnimessage.
67
+
68
+ ### Example
69
+
70
+ ```ruby
71
+ # load the gem
72
+ require 'messente_api'
73
+ # setup authorization
74
+ MessenteApi.configure do |config|
75
+ # Configure HTTP basic authorization: basicAuth
76
+ config.username = 'YOUR USERNAME'
77
+ config.password = 'YOUR PASSWORD'
78
+ end
79
+
80
+ api_instance = MessenteApi::OmnimessageApi.new
81
+ omnimessage = MessenteApi::Omnimessage.new # Omnimessage | Omnimessage to be sent
82
+
83
+ begin
84
+ #Sends an Omnimessage.
85
+ result = api_instance.send_omnimessage(omnimessage)
86
+ p result
87
+ rescue MessenteApi::ApiError => e
88
+ puts "Exception when calling OmnimessageApi->send_omnimessage: #{e}"
89
+ end
90
+ ```
91
+
92
+ ### Parameters
93
+
94
+
95
+ Name | Type | Description | Notes
96
+ ------------- | ------------- | ------------- | -------------
97
+ **omnimessage** | [**Omnimessage**](Omnimessage.md)| Omnimessage to be sent |
98
+
99
+ ### Return type
100
+
101
+ [**OmniMessageCreateSuccessResponse**](OmniMessageCreateSuccessResponse.md)
102
+
103
+ ### Authorization
104
+
105
+ [basicAuth](../README.md#basicAuth)
106
+
107
+ ### HTTP request headers
108
+
109
+ - **Content-Type**: application/json
110
+ - **Accept**: application/json
111
+
@@ -0,0 +1,27 @@
1
+ # MessenteApi::SMS
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **text** | **String** | Text content of the SMS |
8
+ **sender** | **String** | Phone number or alphanumeric sender name | [optional]
9
+ **validity** | **Integer** | After how many minutes this channel is considered as failed and the next channel is attempted | [optional]
10
+ **autoconvert** | **String** | Defines how non-GSM characters will be treated: - \"on\" Use replacement settings from the account's [API Auto Replace settings page](https://dashboard.messente.com/api-settings/auto-replace)(default) - \"full\" All non GSM 03.38 characters will be replaced with suitable alternatives - \"off\" Message content is not modified in any way | [optional]
11
+ **udh** | **String** | hex-encoded string containing SMS UDH | [optional]
12
+ **channel** | **String** | | [optional] [default to 'sms']
13
+
14
+ ## Code Sample
15
+
16
+ ```ruby
17
+ require 'MessenteApi'
18
+
19
+ instance = MessenteApi::SMS.new(text: Hello world!,
20
+ sender: null,
21
+ validity: 360,
22
+ autoconvert: null,
23
+ udh: null,
24
+ channel: null)
25
+ ```
26
+
27
+
@@ -0,0 +1,16 @@
1
+ # MessenteApi::Status
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+
8
+ ## Code Sample
9
+
10
+ ```ruby
11
+ require 'MessenteApi'
12
+
13
+ instance = MessenteApi::Status.new()
14
+ ```
15
+
16
+
@@ -0,0 +1,16 @@
1
+ # MessenteApi::TextStore
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+
8
+ ## Code Sample
9
+
10
+ ```ruby
11
+ require 'MessenteApi'
12
+
13
+ instance = MessenteApi::TextStore.new()
14
+ ```
15
+
16
+
@@ -0,0 +1,29 @@
1
+ # MessenteApi::Viber
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **sender** | **String** | Phone number or alphanumeric sender name | [optional]
8
+ **validity** | **Integer** | After how many minutes this channel is considered as failed and the next channel is attempted | [optional]
9
+ **text** | **String** | Plaintext content for Viber | [optional]
10
+ **image_url** | **String** | URL for the embedded image. Valid combinations: 1) image_url, 2) text, image_url, button_url, button_text | [optional]
11
+ **button_url** | **String** | URL of the button, must be specified along with ''text'', ''button_text'' and ''image_url'' (optional) | [optional]
12
+ **button_text** | **String** | Must be specified along with ''text'', ''button_url'', ''button_text'', ''image_url'' (optional) | [optional]
13
+ **channel** | **String** | | [optional] [default to 'viber']
14
+
15
+ ## Code Sample
16
+
17
+ ```ruby
18
+ require 'MessenteApi'
19
+
20
+ instance = MessenteApi::Viber.new(sender: null,
21
+ validity: 360,
22
+ text: null,
23
+ image_url: null,
24
+ button_url: null,
25
+ button_text: null,
26
+ channel: null)
27
+ ```
28
+
29
+
@@ -0,0 +1,29 @@
1
+ # MessenteApi::WhatsApp
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **sender** | **String** | Phone number or alphanumeric sender name | [optional]
8
+ **validity** | **Integer** | After how many minutes this channel is considered as failed and the next channel is attempted | [optional]
9
+ **text** | [**WhatsAppText**](WhatsAppText.md) | | [optional]
10
+ **image** | [**WhatsAppImage**](WhatsAppImage.md) | | [optional]
11
+ **document** | [**WhatsAppDocument**](WhatsAppDocument.md) | | [optional]
12
+ **audio** | [**WhatsAppAudio**](WhatsAppAudio.md) | | [optional]
13
+ **channel** | **String** | | [optional] [default to 'whatsapp']
14
+
15
+ ## Code Sample
16
+
17
+ ```ruby
18
+ require 'MessenteApi'
19
+
20
+ instance = MessenteApi::WhatsApp.new(sender: null,
21
+ validity: 360,
22
+ text: null,
23
+ image: null,
24
+ document: null,
25
+ audio: null,
26
+ channel: null)
27
+ ```
28
+
29
+
@@ -0,0 +1,17 @@
1
+ # MessenteApi::WhatsAppAudio
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **content** | **String** | Base64-encoded audio |
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'MessenteApi'
13
+
14
+ instance = MessenteApi::WhatsAppAudio.new(content: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,19 @@
1
+ # MessenteApi::WhatsAppDocument
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **caption** | **String** | Description for the document | [optional]
8
+ **content** | **String** | Base64-encoded image |
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'MessenteApi'
14
+
15
+ instance = MessenteApi::WhatsAppDocument.new(caption: null,
16
+ content: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,19 @@
1
+ # MessenteApi::WhatsAppImage
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **caption** | **String** | Description for the image | [optional]
8
+ **content** | **String** | Base64-encoded image |
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'MessenteApi'
14
+
15
+ instance = MessenteApi::WhatsAppImage.new(caption: null,
16
+ content: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,19 @@
1
+ # MessenteApi::WhatsAppText
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **preview_url** | **Boolean** | Whether to display link preview if the message contains a hyperlink. | [optional] [default to true]
8
+ **body** | **String** | Plaintext content for WhatsApp, can contain URLs, emojis and formatting |
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'MessenteApi'
14
+
15
+ instance = MessenteApi::WhatsAppText.new(preview_url: null,
16
+ body: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,55 @@
1
+ #!/bin/sh
2
+ #
3
+ # Generated by: https://openapi-generator.tech
4
+ #
5
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
6
+ #
7
+ # Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update"
8
+
9
+ git_user_id=$1
10
+ git_repo_id=$2
11
+ release_note=$3
12
+
13
+ if [ "$git_user_id" = "" ]; then
14
+ git_user_id="messente"
15
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
16
+ fi
17
+
18
+ if [ "$git_repo_id" = "" ]; then
19
+ git_repo_id="messente-api-ruby"
20
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
21
+ fi
22
+
23
+ if [ "$release_note" = "" ]; then
24
+ release_note="Minor update"
25
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
26
+ fi
27
+
28
+ # Initialize the local directory as a Git repository
29
+ git init
30
+
31
+ # Adds the files in the local repository and stages them for commit.
32
+ git add .
33
+
34
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
35
+ git commit -m "$release_note"
36
+
37
+ # Sets the new remote
38
+ git_remote=`git remote`
39
+ if [ "$git_remote" = "" ]; then # git remote not defined
40
+
41
+ if [ "$GIT_TOKEN" = "" ]; then
42
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
43
+ git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
44
+ else
45
+ git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
46
+ fi
47
+
48
+ fi
49
+
50
+ git pull origin master
51
+
52
+ # Pushes (Forces) the changes in the local repository up to the remote repository
53
+ echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
54
+ git push origin master 2>&1 | grep -v 'To https'
55
+