Skip to content

Commit

Permalink
docs(readme): added guide on getHttpResponse()
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Carr committed May 21, 2020
1 parent b779335 commit 9f71135
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,21 @@ const joodle = new Joodle(...);
})();
```

#### Raw HTTP Responses

Every function call response contains a `getHttpResponse()` method that allows you to access the raw HTTP response that was returned by Moodle's Web Services API.

```js
...

joodle.auth.email.getSignUpSettings().then((response) => {
//=> Successful. Log raw HTTP response from Moodle...
console.log(response.getHttpResponse());
});

...
```

## Contributing

### General Guidelines
Expand Down

0 comments on commit 9f71135

Please sign in to comment.