Skip to content

Commit 6cd7deb

Browse files
committed
Add API endpoint
1 parent 7b8265e commit 6cd7deb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: curl.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
define( 'CLIENT_SECRET', 'your-client-secret-here' );
55
define( 'CONTENT_TYPE', 'application/json' );
66
define( 'ACCEPTS', 'application/json' );
7-
define( 'ENDPOINT', 'url-to-fortnox-api' );
7+
define( 'ENDPOINT', 'https://api.fortnox.se/3/' );
88

99
function apiCall( $requestMethod, $entity, $body = null ){
1010

@@ -29,4 +29,4 @@ function apiCall( $requestMethod, $entity, $body = null ){
2929
return $curlResponse;
3030
}
3131

32-
?>
32+
?>

0 commit comments

Comments
 (0)