Skip to content

Commit 27dcc23

Browse files
committed
fix: Forgot to set git user & repo
1 parent 03b5619 commit 27dcc23

39 files changed

+81
-58
lines changed

.idea/.gitignore

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/loops-api-go.iml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.openapi-generator/FILES

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.gitignore
2-
.openapi-generator-ignore
32
.travis.yml
43
README.md
54
api/openapi.yaml
@@ -53,8 +52,4 @@ model_transactional_failure_response.go
5352
model_transactional_request.go
5453
model_transactional_success_response.go
5554
response.go
56-
test/api_contacts_test.go
57-
test/api_custom_fields_test.go
58-
test/api_events_test.go
59-
test/api_transactional_emails_test.go
6055
utils.go

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# Go API client for openapi
1+
# Go API client for loops
22

33
This is the OpenAPI Spec for the [Loops API](https://loops.so/docs/api).
44

55
## Overview
66
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.
77

88
- API version: 1.0.1
9-
- Package version: 1.0.0
9+
- Package version: 1.0.2
1010
- Build package: org.openapitools.codegen.languages.GoClientCodegen
1111

1212
## Installation
@@ -21,7 +21,7 @@ go get golang.org/x/net/context
2121
Put the package under your project folder and add the following in import:
2222

2323
```go
24-
import openapi "github.com/GIT_USER_ID/GIT_REPO_ID"
24+
import loops "github.com/behnh/loops-api-go"
2525
```
2626

2727
To use a proxy, set the environment variable `HTTP_PROXY`:
@@ -36,18 +36,18 @@ Default configuration comes with `Servers` field that contains server objects as
3636

3737
### Select Server Configuration
3838

39-
For using other server than the one defined on index 0 set context value `openapi.ContextServerIndex` of type `int`.
39+
For using other server than the one defined on index 0 set context value `loops.ContextServerIndex` of type `int`.
4040

4141
```go
42-
ctx := context.WithValue(context.Background(), openapi.ContextServerIndex, 1)
42+
ctx := context.WithValue(context.Background(), loops.ContextServerIndex, 1)
4343
```
4444

4545
### Templated Server URL
4646

47-
Templated server URL is formatted using default variables from configuration or from context value `openapi.ContextServerVariables` of type `map[string]string`.
47+
Templated server URL is formatted using default variables from configuration or from context value `loops.ContextServerVariables` of type `map[string]string`.
4848

4949
```go
50-
ctx := context.WithValue(context.Background(), openapi.ContextServerVariables, map[string]string{
50+
ctx := context.WithValue(context.Background(), loops.ContextServerVariables, map[string]string{
5151
"basePath": "v2",
5252
})
5353
```
@@ -58,13 +58,13 @@ Note, enum values are always validated and all unused variables are silently ign
5858

5959
Each operation can use different server URL defined using `OperationServers` map in the `Configuration`.
6060
An operation is uniquely identified by `"{classname}Service.{nickname}"` string.
61-
Similar rules for overriding default operation server index and variables applies by using `openapi.ContextOperationServerIndices` and `openapi.ContextOperationServerVariables` context maps.
61+
Similar rules for overriding default operation server index and variables applies by using `loops.ContextOperationServerIndices` and `loops.ContextOperationServerVariables` context maps.
6262

6363
```go
64-
ctx := context.WithValue(context.Background(), openapi.ContextOperationServerIndices, map[string]int{
64+
ctx := context.WithValue(context.Background(), loops.ContextOperationServerIndices, map[string]int{
6565
"{classname}Service.{nickname}": 2,
6666
})
67-
ctx = context.WithValue(context.Background(), openapi.ContextOperationServerVariables, map[string]map[string]string{
67+
ctx = context.WithValue(context.Background(), loops.ContextOperationServerVariables, map[string]map[string]string{
6868
"{classname}Service.{nickname}": {
6969
"port": "8443",
7070
},
@@ -119,7 +119,7 @@ Authentication schemes defined for the API:
119119
Example
120120

121121
```go
122-
auth := context.WithValue(context.Background(), openapi.ContextAccessToken, "BEARER_TOKEN_STRING")
122+
auth := context.WithValue(context.Background(), loops.ContextAccessToken, "BEARER_TOKEN_STRING")
123123
r, err := client.Service.Operation(auth, args)
124124
```
125125

api_contacts.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api_custom_fields.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api_events.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api_transactional_emails.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
1-
package: loops
2-
generate:
3-
client: true
4-
models: true
5-
output: loops.gen.go
1+
packageName: loops
2+
packageVersion: 1.0.2

configuration.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/ContactsAPI.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
"context"
2929
"fmt"
3030
"os"
31-
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
31+
openapiclient "github.com/behnh/loops-api-go"
3232
)
3333

3434
func main() {
@@ -94,7 +94,7 @@ import (
9494
"context"
9595
"fmt"
9696
"os"
97-
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
97+
openapiclient "github.com/behnh/loops-api-go"
9898
)
9999

100100
func main() {
@@ -160,7 +160,7 @@ import (
160160
"context"
161161
"fmt"
162162
"os"
163-
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
163+
openapiclient "github.com/behnh/loops-api-go"
164164
)
165165

166166
func main() {
@@ -226,7 +226,7 @@ import (
226226
"context"
227227
"fmt"
228228
"os"
229-
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
229+
openapiclient "github.com/behnh/loops-api-go"
230230
)
231231

232232
func main() {

docs/CustomFieldsAPI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
"context"
2626
"fmt"
2727
"os"
28-
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
28+
openapiclient "github.com/behnh/loops-api-go"
2929
)
3030

3131
func main() {

docs/EventsAPI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
"context"
2626
"fmt"
2727
"os"
28-
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
28+
openapiclient "github.com/behnh/loops-api-go"
2929
)
3030

3131
func main() {

docs/TransactionalEmailsAPI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
"context"
2626
"fmt"
2727
"os"
28-
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
28+
openapiclient "github.com/behnh/loops-api-go"
2929
)
3030

3131
func main() {

git_push.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ if [ "$git_host" = "" ]; then
1414
fi
1515

1616
if [ "$git_user_id" = "" ]; then
17-
git_user_id="GIT_USER_ID"
17+
git_user_id="behnh"
1818
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
1919
fi
2020

2121
if [ "$git_repo_id" = "" ]; then
22-
git_repo_id="GIT_REPO_ID"
22+
git_repo_id="loops-api-go"
2323
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
2424
fi
2525

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/GIT_USER_ID/GIT_REPO_ID
1+
module github.com/behnh/loops-api-go
22

33
go 1.18
44

model__contacts_delete_post_500_response.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

model__transactional_post_400_response.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

model_contact.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

model_contact_delete_request.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

model_contact_delete_response.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

model_contact_failure_response.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

model_contact_request.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

model_contact_success_response.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

model_custom_field.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

model_event_failure_response.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

model_event_request.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

model_event_success_response.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

model_transactional_failure2_response.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)