05-01-2021 10:53
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-01-2021 10:53
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi
I am new to developing and Web APIs. My question is, how do I make a https request? For example below is an example request. How do I put it into javascript code?
GET https://api.fitbit.com/1.2/user/-/sleep/date/2017-04-02.json
I would be grateful if someone could post a working example of a request.
I tried to use the OAth example but it didn't work.
Thank you in advance

- Labels:
-
JavaScript
05-03-2021 16:08
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



05-03-2021 16:08
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi @alexnewb101,
Welcome to the forums!
If you have the time, please check out the Community Resources page for example code from a variety of languages shared by our Community.

