@@ -223,14 +223,14 @@ actions:
223223 update :
224224 " x-codeSamples " :
225225 - " lang " : " go"
226- " label " : " approvePartner "
227- " source " : " package main\n\n import(\n\t\" context\"\n\t dubgo \" github.com/dubinc/dub-go\"\n\t\" github.com/dubinc/dub-go/models/operations\"\n\t\" log\"\n )\n\n func main() {\n ctx := context.Background()\n\n s := dubgo.New(\n dubgo.WithSecurity(\" DUB_API_KEY\" ),\n )\n\n res, err := s.PartnerApplications.Approve(ctx, operations.ApprovePartnerRequestBody {\n PartnerID: \" <id>\" ,\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n }"
226+ " label " : " approvePartnerApplication "
227+ " source " : " package main\n\n import(\n\t\" context\"\n\t dubgo \" github.com/dubinc/dub-go\"\n\t\" github.com/dubinc/dub-go/models/operations\"\n\t\" log\"\n )\n\n func main() {\n ctx := context.Background()\n\n s := dubgo.New(\n dubgo.WithSecurity(\" DUB_API_KEY\" ),\n )\n\n res, err := s.PartnerApplications.Approve(ctx, operations.ApprovePartnerApplicationRequestBody {\n PartnerID: \" <id>\" ,\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n }"
228228 - target : $["paths"]["/partners/applications/reject"]["post"]
229229 update :
230230 " x-codeSamples " :
231231 - " lang " : " go"
232- " label " : " rejectPartner "
233- " source " : " package main\n\n import(\n\t\" context\"\n\t dubgo \" github.com/dubinc/dub-go\"\n\t\" github.com/dubinc/dub-go/models/operations\"\n\t\" log\"\n )\n\n func main() {\n ctx := context.Background()\n\n s := dubgo.New(\n dubgo.WithSecurity(\" DUB_API_KEY\" ),\n )\n\n res, err := s.PartnerApplications.Reject(ctx, operations.RejectPartnerRequestBody {\n PartnerID: \" <id>\" ,\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n }"
232+ " label " : " rejectPartnerApplication "
233+ " source " : " package main\n\n import(\n\t\" context\"\n\t dubgo \" github.com/dubinc/dub-go\"\n\t\" github.com/dubinc/dub-go/models/operations\"\n\t\" log\"\n )\n\n func main() {\n ctx := context.Background()\n\n s := dubgo.New(\n dubgo.WithSecurity(\" DUB_API_KEY\" ),\n )\n\n res, err := s.PartnerApplications.Reject(ctx, operations.RejectPartnerApplicationRequestBody {\n PartnerID: \" <id>\" ,\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n }"
234234 - target : $["paths"]["/partners/ban"]["post"]
235235 update :
236236 " x-codeSamples " :
@@ -247,8 +247,8 @@ actions:
247247 update :
248248 " x-codeSamples " :
249249 - " lang " : " go"
250- " label " : " retrieveLinks "
251- " source " : " package main\n\n import(\n\t\" context\"\n\t dubgo \" github.com/dubinc/dub-go\"\n\t\" github.com/dubinc/dub-go/models/operations\"\n\t\" log\"\n )\n\n func main() {\n ctx := context.Background()\n\n s := dubgo.New(\n dubgo.WithSecurity(\" DUB_API_KEY\" ),\n )\n\n res, err := s.Partners.RetrieveLinks(ctx, operations.RetrieveLinksRequest {})\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n }"
250+ " label " : " retrievePartnerLinks "
251+ " source " : " package main\n\n import(\n\t\" context\"\n\t dubgo \" github.com/dubinc/dub-go\"\n\t\" github.com/dubinc/dub-go/models/operations\"\n\t\" log\"\n )\n\n func main() {\n ctx := context.Background()\n\n s := dubgo.New(\n dubgo.WithSecurity(\" DUB_API_KEY\" ),\n )\n\n res, err := s.Partners.RetrieveLinks(ctx, operations.RetrievePartnerLinksRequest {})\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n }"
252252 - target : $["paths"]["/partners/links"]["post"]
253253 update :
254254 " x-codeSamples " :
0 commit comments