bravo68web-portfolio-nextjs/handlers/sdk.js

71 lines
1.6 KiB
JavaScript
Raw Normal View History

2023-01-14 22:14:48 +00:00
import { requester } from "./requester";
2022-04-01 16:45:30 +00:00
export const APISDK = {
data: {},
2022-04-02 19:52:51 +00:00
async req() {
await requester(
[
{
2023-01-14 22:14:48 +00:00
endpoint: "/me/github/user",
2022-04-02 19:52:51 +00:00
name: "gh_user",
},
2022-04-02 23:42:08 +00:00
{
2023-01-14 22:14:48 +00:00
endpoint: "/me/discord/profile",
2022-04-02 23:42:08 +00:00
name: "discord_activity",
},
{
2023-01-14 22:14:48 +00:00
endpoint: "/me/gaming/osu/user",
2022-04-02 23:42:08 +00:00
name: "osu_user",
},
{
2023-01-14 22:14:48 +00:00
endpoint: "/me/gaming/osu/best",
2022-04-02 23:42:08 +00:00
name: "osu_bestScores",
},
{
2023-01-14 22:14:48 +00:00
endpoint: "/me/spotify/top",
2022-04-02 23:42:08 +00:00
name: "spotify_top_songs",
},
{
endpoint: "/me/wakatime/codeTimeAllTime",
name: "wakatime_user",
},
{
endpoint: "/me/wakatime/codeStatsLast7Days",
name: "wakatime_stats",
},
{
endpoint: "/me/wakatime/LanguageUsageInLast7Days",
name: "wakatime_lang",
},
{
2023-01-14 22:14:48 +00:00
endpoint: "/me/hashnode/",
name: "hn_user",
},
2022-04-02 23:42:08 +00:00
{
2023-01-14 22:14:48 +00:00
endpoint: "/me/twitter/profile",
2022-04-02 23:42:08 +00:00
name: "twitter_user",
},
{
2023-01-14 22:14:48 +00:00
endpoint: "/me/twitter/tweets",
2022-04-02 23:42:08 +00:00
name: "twitter_tweets",
},
{
endpoint: "/me/lastfm/current",
name: "lastfm_current",
},
2022-04-09 21:05:58 +00:00
{
2023-01-14 22:14:48 +00:00
endpoint: "/me/github/events",
2022-04-09 21:05:58 +00:00
name: "gh_events",
},
2022-05-27 08:07:44 +00:00
{
2023-01-14 22:14:48 +00:00
endpoint: "/me/vscode/",
2022-05-27 08:07:44 +00:00
name: "vscode",
},
2022-04-02 19:52:51 +00:00
],
this.data
);
// return tempEndpoint("https://api.github.com/users/bravo68web", this.data);
2022-04-01 16:45:30 +00:00
},
};
2023-01-14 22:14:48 +00:00
console.log(APISDK.data);