Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Wrapper to getting weekly free games with Epic Games API

License

NotificationsYou must be signed in to change notification settings

AuroPick/epic-free-games

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHubnpmnpm

Get Weekly Free Games Of Epic Games

Installation

npmiepic-free-games// ORyarnaddepic-free-games

Usage

const{ EpicFreeGames}=require('epic-free-games');// ORimport{EpicFreeGames}from'epic-free-games';constepicFreeGames=newEpicFreeGames({country:'JP',locale:'ja',includeAll:true})epicFreeGames.getGames().then(res=>{// Do something}).catch(err=>{// Do something});// you can override default optionsepicFreeGames.getGames({country:'DE',locale:'de',includeAll:false}).then(res=>{// Do something}).catch(err=>{// Do something});

Function Parameters

FunctionParameterParameter ValuesDefault Value
getGamescountry:string"TR", "US", "GB", "DE", "AR", "ES", "MX", "FR", "IT", "JP", "KR", "PL", "BR", "RU", "TH", "CN", "IN", "GR""US"
getGameslocale:string"tr", "ja", "ar", "de", "en-US", "es-ES", "es-MX", "fr", "it", "ko", "pl", "pt-BR", "ru", "th", "zh-CN", "zh-Hant""en-US"
getGamesincludeAll:booleantrue | falsefalse

Sample Output

{currentGames:[{title:'3 out of 10: Season Two',id:'9fc33e99abf342138323856854e745ec',namespace:'b829cfd910554ad3ad2eb3b314e2b1ef',description:'3 out of 10: Season Two',effectiveDate:'2021-04-08T15:00:00.000Z',offerType:'BASE_GAME',expiryDate:null,status:'ACTIVE',isCodeRedemptionOnly:false,keyImages:[Array],seller:[Object],productSlug:'3-out-of-10-season-2',urlSlug:'mooncakegeneralaudience',url:null,items:[Array],customAttributes:[Array],categories:[Array],tags:[Array],price:[Object],promotions:[Object]}],nextGames:[{title:"Ken Follett's The Pillars of the Earth",id:'ded5930173d5495993186871fbfd329a',namespace:'ce8393adfbf342ceab0a36479ffbc627',description:"Ken Follett's The Pillars of the Earth",effectiveDate:'2021-04-15T15:00:00.000Z',offerType:'BASE_GAME',expiryDate:null,status:'ACTIVE',isCodeRedemptionOnly:false,keyImages:[Array],seller:[Object],productSlug:'ken-follets-the-pillars-of-the-earth',urlSlug:'tiger-general-audience',url:null,items:[Array],customAttributes:[Array],categories:[Array],tags:[Array],price:[Object],promotions:[Object]},{title:'Deponia: The Complete Journey',id:'abdae4ebcf3e41beb6ec8040d818afcd',namespace:'e5decf71f325458b92653616ee98682a',description:'Deponia: The Complete Journey',effectiveDate:'2021-04-15T15:00:00.000Z',offerType:'BASE_GAME',expiryDate:null,status:'ACTIVE',isCodeRedemptionOnly:false,keyImages:[Array],seller:[Object],productSlug:'deponia-the-complete-journey',urlSlug:'ghoulgeneralaudience',url:null,items:[Array],customAttributes:[Array],categories:[Array],tags:[Array],price:[Object],promotions:[Object]},{title:'The First Tree',id:'844f72b164ad4f5884c4feeca5561678',namespace:'489c2ca47aaa4190b694184b979d3b23',description:'The First Tree',effectiveDate:'2021-04-15T15:00:00.000Z',offerType:'BASE_GAME',expiryDate:null,status:'ACTIVE',isCodeRedemptionOnly:false,keyImages:[Array],seller:[Object],productSlug:'the-first-tree',urlSlug:'the-first-tree',url:null,items:[Array],customAttributes:[Array],categories:[Array],tags:[Array],price:[Object],promotions:[Object]}]}

If you have any questions please do not hesitate to contact me.


If you want to support me, you can give a star. That makes me happy.


[8]ページ先頭

©2009-2025 Movatter.jp