Skip to content

Commit

Permalink
add api client helper
Browse files Browse the repository at this point in the history
  • Loading branch information
alecananian committed Nov 5, 2024
1 parent cc6746d commit a803684
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/core/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import type {
ReadLoginPayloadReply,
ReadProjectReply,
ReadTransactionReply,
ReadUserPublicProfileReply,
ReadUserTransactionsQuerystring,
ReadUserTransactionsReply,
RouteReply,
Expand Down Expand Up @@ -207,6 +208,8 @@ export class TDKAPI {
),
getSessions: (params: ReadCurrentUserSessionsQuerystring) =>
this.get<ReadCurrentUserSessionsReply>("/users/me/sessions", params),
getPublicProfile: (id: string) =>
this.get<ReadUserPublicProfileReply>(`/users/${id}`),
getTransactions: (
address: string,
query?: ReadUserTransactionsQuerystring,
Expand Down

0 comments on commit a803684

Please sign in to comment.