Skip to content

Commit

Permalink
I1
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoRedondoo committed May 10, 2024
1 parent 40637cc commit 21982e7
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 3 deletions.
39 changes: 39 additions & 0 deletions front/src/routes/integrations/gunganTranslatorNRM/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<script>
import axios from 'axios';
import { onMount } from "svelte";
import { Container } from "@sveltestrap/sveltestrap";
let translation = [];
async function fetchGunganTranslation() {
try {
// console.log(inputSentence);
const options = {
method: 'GET',
url: 'https://gungan.p.rapidapi.com/gungan.json',
params: {
text: 'You came to my home and I said okay!'
},
headers: {
'X-RapidAPI-Key': '88a523cd96msh3544e0ee37800ebp1845b1jsnf31a7971dadb',
'X-RapidAPI-Host': 'gungan.p.rapidapi.com'
}
};
const response = await axios.request(options);
console.log(response);
console.log(response.data);
} catch (error) {
console.log(`Error -> ${error}`);
}
}
onMount(() => {
fetchGunganTranslation();
})
</script>

<Container>
Loading...

</Container>
3 changes: 0 additions & 3 deletions front/src/routes/integrations/nbaDataNRM/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
let nbaData = [];
let searchYear = 0; // Initial year value (0)
let searchTeam = 0;
let inputSearchYear ;
let inputSearchTeam ;
Expand Down

0 comments on commit 21982e7

Please sign in to comment.