Skip to content

Commit

Permalink
Merge pull request #25 from bundleglobal/api-v2
Browse files Browse the repository at this point in the history
BREAKING CHANGE: api v2 - organization based api key
  • Loading branch information
nightspite authored Sep 22, 2024
2 parents 04f258b + de50840 commit b9220f8
Show file tree
Hide file tree
Showing 9 changed files with 8,073 additions and 5,247 deletions.
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ jobs:
runs-on: ubuntu-latest
env:
BUNDLE_SOCIAL_API_KEY: ${{ secrets.BUNDLE_SOCIAL_API_KEY }}
BUNDLE_SOCIAL_TEAM_ID: ${{ secrets.BUNDLE_SOCIAL_TEAM_ID }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
6 changes: 6 additions & 0 deletions client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import { Interceptors } from './core/OpenAPI';
import { FetchHttpRequest } from './core/FetchHttpRequest';

import { AppService } from './services.gen';
import { OrganizationService } from './services.gen';
import { PostService } from './services.gen';
import { SocialAccountService } from './services.gen';
import { TeamService } from './services.gen';
import { UploadService } from './services.gen';

Expand All @@ -13,7 +15,9 @@ type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
export class Client {

public readonly app: AppService;
public readonly organization: OrganizationService;
public readonly post: PostService;
public readonly socialAccount: SocialAccountService;
public readonly team: TeamService;
public readonly upload: UploadService;

Expand All @@ -37,7 +41,9 @@ export class Client {
});

this.app = new AppService(this.request);
this.organization = new OrganizationService(this.request);
this.post = new PostService(this.request);
this.socialAccount = new SocialAccountService(this.request);
this.team = new TeamService(this.request);
this.upload = new UploadService(this.request);
}
Expand Down
Loading

0 comments on commit b9220f8

Please sign in to comment.