전체 글

헤더 이름 자동 설정 여부 기본 자동 설정값 설명 Host✅ 자동요청한 도메인(ex. example.com)대상 서버 도메인User-Agent✅ 자동브라우저 정보(ex. Mozilla/5.0 ...)사용자 브라우저 정보Accept✅ 자동text/html,application/xhtml+xml,...클라이언트가 수용 가능한 MIME 타입Accept-Language✅ 자동ko-KR,ko;q=0.9,...사용자 브라우저 언어 설정Accept-Encoding✅ 자동gzip, deflate, br수용 가능한 압축 방식Referer✅ 자동현재 페이지 URL요청 발생 위치Origin✅ 자동 (CORS 시)요청 출처 (ex. https://mysite.com)CORS 관련Connection✅ 자동keep-ali..
사전 준비메타 디벨로퍼 회원가입 + 로그인https://developers.facebook.com/ 소셜 테크놀로지 | Meta for Developers2024년 10월 1일 Introducing new features for the Threads API We want to make Threads the place where people, especially creators and businesses, connect with new and existing audiences around their interests and experiences. In June, we launched the Thrdevelopers.facebook.com 시작하기https://developers.facebook.com/ap..
// 메인 컬러 - 이동규 생일primary: { main: "rgba(00, 10, 9, 1.0)", dark: "rgba(00, 10, 9, 0.7)", light: "rgba(00, 10, 9, 0.3)",},// 서브 컬러 - 이(李)의 유나코드secondary: { main: "rgba(84, 25, 252, 1.0)", dark: "rgba(84, 25, 252, 0.7)", light: "rgba(84, 25, 252, 0.3)",},// 배경색 - (흰색 - 이동규 생일) background: { default: "#FFFFFF", paper: "rgba(255, 245, 246, 1.0)",},
// 이미지 검색 함수export async function searchImage(query: string) { try { const response = await axios.get(`https://pixabay.com/api?key=${process.env.PIXABAY_API_KEY}&q=${query}`); // eslint-disable-next-line @typescript-eslint/no-explicit-any const imageLinkList = response.data.hits.map((hit: any) => hit.webformatURL); if (imageLinkList.length === 0) { return "no image"; } co..
이미 보내버린 API 요청을 취소해보자제발 돌아와 API 야 미리보기 코드import axios, { CancelTokenSource } from "axios";const TestComponent = () => { const [cancelTokens, setCancelTokens] = useState([]); ////////// 게시물 업로드 const articleUpload = async () => { // 취소 토큰 발급 const source = axios.CancelToken.source(); // 취소 토큰 배열에 추가 setCancelTokens((prev) => [...prev, source]); // API 요청 const response = awai..
https://platform.openai.com/settings/organization/billing/overview 아래 원인일 가능성이 높으니 위 링크에서 해결하삼1. 결제 수단을 등록하지 않음2. 충전한 금액이 모두 소진됨
import axios from "axios";type PostWordpressArticleType = { wpUrl: string; wpId: string; wpApplicationPw: string; articleInfo: WordpressArticleInfoType;};export type WordpressArticleInfoType = { title: string; content: string; status: "publish" | "future" | "draft" | "pending" | "private";};export const postWordpressArticle = async (wpInfo: PostWordpressArticleType) => { try { const {..
요약유튜브 스튜디오가 아닌 유튜브 앱으로 접속해 아래 경로를 따라갑니다내페이지(우하단) > 내 동영상(스크롤) > 수정하려는 숏츠 수정(숏츠 우상단) > 수정 > 수정 아이콘(썸네일 좌상단) https://hlife-ing.tistory.com/entry/%EC%9C%A0%ED%8A%9C%EB%B8%8C-%EC%87%BC%EC%B8%A0-%EC%8D%B8%EB%84%A4%EC%9D%BC-%EB%B3%80%EA%B2%BD%ED%95%98%EB%8A%94-%EB%B0%A9%EB%B2%95-%EC%99%9C-%EB%82%98%EB%8A%94-%EC%8D%B8%EB%84%A4%EC%9D%BC-%EB%B3%80%EA%B2%BD%EC%9D%B4-%EC%95%88%EB%90%90%EC%9D%84%EA%B9%8C 유튜..
순코딩
순코딩