You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_This is an API wrapper for the_[_valorant-api.com_](https://valorant-api.com)_API_
3
+
This is an API wrapper for [valorant-api.com](https://valorant-api.com). This API is separate from the in-game APIs and is managed by a third party.
4
4
5
5
#### Getting Started:
6
6
7
-
First you need to import the Content module and the Language Module. This is how it works:
7
+
First you need to import the ContentAPI module and the Language Module.
8
8
9
9
```javascript
10
-
const { Content, Languages } =require("@liamcottle/valorant.js");
10
+
const { ContentAPI, Languages } =require("@liamcottle/valorant.js");
11
11
```
12
12
13
-
Next, you need to create an Content instance. Here you have the possibility to choose the Language in which the data will be delivered. By deafult the language is set to English. Here is a list of all available languages:
13
+
Next, you need to create a ContentAPI instance. You can optionally provide the Language the data should be returned in. By default, the language is set to English. Here is a list of all available languages:
14
14
15
15
|**Languages**|
16
16
| :-----------------: |
@@ -33,7 +33,7 @@ Next, you need to create an Content instance. Here you have the possibility to c
33
33
| Chinese_Traditional |
34
34
35
35
```js
36
-
constcontent=newContentAPI(languages.English);
36
+
constcontent=newContentAPI(Languages.English);
37
37
```
38
38
39
39
After you have created the ContentAPI instance you can start fetching data. For this you can either use _async/await_ or _.then_ this works as follows:
Here is a example on how to get the Daily Store of a Player and then get the Asset Data using the ContentAPI and the [ClientAPI](https://github.com/liamcottle/valorant.js#readme) this Package provides.
58
+
Here is an example of how to get a players' Daily Store and then fetch the Asset Data using the ContentAPI.
59
59
60
60
```js
61
-
//import modules
62
-
const { API, Content, languages, Regions } =require("@liamcottle/valorant.js");
61
+
//import modules
62
+
const { API, ContentAPI, Languages, Regions } =require("@liamcottle/valorant.js");
_If you have any Issue or Suggestion please open an Issue on the [Github Repository](https://github.com/liamcottle/valorant.js) or join the [Discord Server](https://discord.gg/HUFEkChRpP)_
0 commit comments