File tree Expand file tree Collapse file tree 2 files changed +1
-14
lines changed Expand file tree Collapse file tree 2 files changed +1
-14
lines changed Original file line number Diff line number Diff line change 1
1
import axios from 'axios' ;
2
- import { getOfferDetails , Order as PeachOrder } from 'peach-api-ts/src/private/offer/getOfferDetails' ;
3
-
2
+ import { getOfferDetails } from 'peach-api-ts/src/private/offer/getOfferDetails' ;
4
3
const baseURL = 'https://api.peachbitcoin.com/v1' ; // Peach API base URL
5
4
const apiKey = 'your-api-key-here' ; // Make sure to replace this with your actual API key
6
5
Original file line number Diff line number Diff line change @@ -37,15 +37,3 @@ interface Order {
37
37
38
38
createOrder ( order ) ;
39
39
40
- async function getSecureData ( ) {
41
- try {
42
- const response = await axios . get ( `${ baseURL } /secure-endpoint` , {
43
- headers : {
44
- 'Authorization' : `Bearer ${ apiKey } ` ,
45
- } ,
46
- } ) ;
47
- console . log ( response . data ) ;
48
- } catch ( error ) {
49
- console . error ( 'Error fetching secure data:' , error ) ;
50
- }
51
- }
You can’t perform that action at this time.
0 commit comments