Skip to content

Commit 71e387a

Browse files
author
Tomasz Bartosiewicz
committed
updated endpoints for both json-rpc and rescript
1 parent 9cf314f commit 71e387a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

javascript/JsonRpcApiNgClient.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ var DEFAULT_ENCODING = 'utf-8';
1717
var DEFAULT_JSON_FORMAT = '\t';
1818

1919
var options = {
20-
hostname: 'api.betfair.com/exchange/betting',
20+
hostname: 'api.betfair.com',
2121
port: 443,
22-
path: '/json-rpc/v1',
22+
path: '/exchange/betting/json-rpc/v1',
2323
method: 'POST',
2424
headers: {
2525
'X-Application' : appkey,

javascript/RescriptApiNgClient.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ function DemoApiNgClient(){
2222
function updateHeaders(operationName) {
2323
return {
2424
port: 443,
25-
hostname: 'api.betfair.com/exchange/betting',
26-
path: '/rest/v1.0/' + operationName + '/',
25+
hostname: 'api.betfair.com',
26+
path: '/exchange/betting/rest/v1.0/' + operationName + '/',
2727
method: 'POST',
2828
headers: {
2929
'X-Application' : appkey,

0 commit comments

Comments
 (0)