File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 5
5
### Fixed
6
6
7
7
- Bug with converting message's ` date_sent ` to ` Date `
8
+ - Changed hlr request method from GET to POST.
8
9
9
10
## [ 2.0.7] ( https://github.com/smsapi/smsapi-javascript-client/compare/v2.0.6...v2.0.7 ) - 2023-07-17
10
11
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ describe('HLR', () => {
21
21
} ;
22
22
23
23
const req = nock ( API_URL )
24
- . get ( '/hlr.do' )
24
+ . post ( '/hlr.do' )
25
25
. query ( {
26
26
format : 'json' ,
27
27
number : someNumber ,
@@ -48,7 +48,7 @@ describe('HLR', () => {
48
48
} ;
49
49
50
50
const req = nock ( API_URL )
51
- . get ( '/hlr.do' )
51
+ . post ( '/hlr.do' )
52
52
. query ( {
53
53
format : 'json' ,
54
54
idx : someIdx ,
@@ -75,7 +75,7 @@ describe('HLR', () => {
75
75
} ) ) ;
76
76
77
77
const req = nock ( API_URL )
78
- . get ( '/hlr.do' )
78
+ . post ( '/hlr.do' )
79
79
. query ( {
80
80
format : 'json' ,
81
81
number : someNumbers . join ( ',' ) ,
@@ -102,7 +102,7 @@ describe('HLR', () => {
102
102
} ) ) ;
103
103
104
104
const req = nock ( API_URL )
105
- . get ( '/hlr.do' )
105
+ . post ( '/hlr.do' )
106
106
. query ( {
107
107
format : 'json' ,
108
108
idx : someIdx . join ( ',' ) ,
@@ -122,7 +122,7 @@ describe('HLR', () => {
122
122
// given
123
123
const someNumber = '48500' ;
124
124
const req = nock ( API_URL )
125
- . get ( '/hlr.do' )
125
+ . post ( '/hlr.do' )
126
126
. query ( {
127
127
format : 'json' ,
128
128
number : someNumber ,
@@ -156,7 +156,7 @@ describe('HLR', () => {
156
156
} ;
157
157
158
158
const req = nock ( API_URL )
159
- . get ( '/hlr.do' )
159
+ . post ( '/hlr.do' )
160
160
. query ( {
161
161
format : 'json' ,
162
162
number : someNumbers . join ( ',' ) ,
Original file line number Diff line number Diff line change @@ -17,10 +17,10 @@ export class Hlr extends BaseModule {
17
17
params . idx = isArray ( idx ) ? idx . join ( ',' ) : idx ;
18
18
}
19
19
20
- return await this . httpClient . get <
20
+ return await this . httpClient . post <
21
21
HlrCheckResponse | HlrCheckResponse [ ] ,
22
22
HlrCheckResponse | HlrCheckResponse [ ]
23
- > ( '/hlr.do' , {
23
+ > ( '/hlr.do' , undefined , {
24
24
params : {
25
25
format : 'json' ,
26
26
...params ,
You can’t perform that action at this time.
0 commit comments