import { getSecret } from 'wix-secrets-backend'; import { fetch } from 'wix-fetch'; export const getApiKey = async () => { try { const privateKey = await getSecret("marvelKey"); console.log(privateKey); // For debugging purposes, remove this in production } catch (error) { console.error("Error getting API key:", error); } }; export const getCharacters = async () => { try { const ts = "1"; const publicKey = "9758c412227abfdf55083adedbf74b1a"; const privateKey = await getSecret("marvelKey"); // Use wixCrypto for secure hashing (replace md5 with a secure algorithm) const hash = await wixCrypto.sha256(ts + privateKey + publicKey); const url = `https://gateway.marvel.com/v1/public/characters?ts=${ts}&apikey=${publicKey}&hash=${hash}`; const response = await fetch(url); if (!response.ok) { throw new Error("Error fetching characters:", await response.text()); } const characterList = await response.json(); console.log(characterList); } catch (error) { console.error("Error fetching characters:", error); } };
top of page
123146005_144230724093390_6753326438821276596_n.jpg

JOHN'S TEST PAGE

​

START NOW

SOMETHING HERE

John John Apostol

Passionate artist showcasing creativity through diverse mediums, capturing emotions and stories in every piece.

  • Facebook
  • Twitter
  • LinkedIn
  • Instagram
54447328_2805253679514763_6203037224533245663_n.jpg
74372338_230129141303874_9215447682324683725_n.jpg

John John Apostol is a talented artist who expresses his creativity through vibrant colors and intricate designs. His artwork captures the beauty of nature and the emotions of the human experience. With a unique style that combines realism and abstract elements, John's pieces evoke a sense of wonder and curiosity in the viewer. His passion for art shines through in every brushstroke, making his portfolio a true reflection of his artistic vision.

  • Instagram
  • Facebook
  • Twitter
  • LinkedIn
  • YouTube
  • TikTok
bottom of page