File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
examples/integration-scripts Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -1592,9 +1592,8 @@ async function run() {
1592
1592
msgSaid = '' ;
1593
1593
while ( msgSaid == '' ) {
1594
1594
let notifications = await client4 . notifications ( ) . list ( ) ;
1595
+ console . log ( JSON . stringify ( notifications ) )
1595
1596
for ( let notif of notifications . notes ) {
1596
- console . log ( notif )
1597
- console . log ( notif . a )
1598
1597
if ( notif . a . r == '/exn/ipex/grant' ) {
1599
1598
msgSaid = notif . a . d ;
1600
1599
await client4 . notifications ( ) . mark ( notif . i ) ;
@@ -1606,4 +1605,7 @@ async function run() {
1606
1605
await new Promise ( ( resolve ) => setTimeout ( resolve , 1000 ) ) ;
1607
1606
}
1608
1607
1608
+ res = await client4 . exchanges ( ) . get ( 'holder' , msgSaid ) ;
1609
+ console . log ( JSON . stringify ( res ) )
1610
+
1609
1611
}
Original file line number Diff line number Diff line change @@ -126,6 +126,14 @@ export class Exchanges {
126
126
let res = await this . client . fetch ( path , method , data ) ;
127
127
return await res . json ( ) ;
128
128
}
129
+
130
+ async get ( name :string , said :string ) {
131
+ let path = `/identifiers/${ name } /exchanges/${ said } ` ;
132
+ let method = 'GET' ;
133
+ let res = await this . client . fetch ( path , method , null ) ;
134
+ return await res . json ( ) ;
135
+
136
+ }
129
137
}
130
138
131
139
export function exchange (
You can’t perform that action at this time.
0 commit comments