Git Product home page Git Product logo

Comments (1)

LeleDerGrasshalmi avatar LeleDerGrasshalmi commented on June 11, 2024

yes, using the stw-motd surface

example request from the game:

POST https://prm-dialogue-public-api-prod.edea.live.use1a.on.epicgames.com/api/v1/fortnite-br/surfaces/stw-motd/target HTTP/1.1
Host: prm-dialogue-public-api-prod.edea.live.use1a.on.epicgames.com
Accept: */*
Accept-Encoding: deflate, gzip
Content-Type: application/json
X-Epic-Correlation-ID: FN-ok5NYVFEmEmsYnsR5Jrmzw
User-Agent: Fortnite/++Fortnite+Release-28.01-CL-30106568 Windows/10.0.19045.1.768.64bit
Authorization: bearer eg1~REDACTED

{
    "onLogin": true,
    "platform": "Windows",
    "language": "en",
    "serverRegion": "EU",
    "country": "DE",
    "hasSavedEventDate": false,
    "hasAttendedEndOfSeasonS17": false,
    "subscription": true,
    "ownsSaveTheWorld": true,
    "filterRestricted": false,
    "isCabined": false,
    "filterConsent": false,
    "filterLimited": false,
    "socialTags": ["Chill", "Mic On", "Open World"],
    "allowedContentTypes": ["functional"],
    "ratingAuthority": "USK",
    "rating": "USK_AGE_12",
    "battlepass": true,
    "battlepassLevel": 23,
    "accountLevel": 4509,
    "victoryCrownsRoyales": 0,
    "globalCash": 0,
    "battlepassStars": 115,
    "battlepassItemsClaimed": 1,
    "unlockedPages": 14,
    "unlockedBonusPages": 0,
    "progressiveBackblingStage": 6,
    "S21ProgressivePhotonicStrikerPickaxe": 6,
    "completedQuests": []
}

example response for that request:

HTTP/1.1 204 No Content
Server: awselb/2.0
Date: Fri, 08 Dec 2023 22:31:26 GMT
Connection: keep-alive

status 204 = no news rn

heres an example response with data (from sparks-motd surface)

HTTP/1.1 200 OK
Date: Fri, 08 Dec 2023 22:31:26 GMT
Content-Type: application/json
Content-Length: 1624
Connection: keep-alive
X-Epic-Correlation-ID: FN-Fuz8JbMrgkCyAqV3HWPyGg
etag: 1af2b40a79eb8fd47e5fafebf3d234c6

{
    "contentType": "collection",
    "contentId": "fortnite-br-sparks-motd-collection",
    "tcId": "f0931799-daef-41bb-8231-12583145d5b4",
    "contentMeta": "{\"5ddc351049dc1071bbdb7fd362cbe2c3\":[\"053d7b0b-dd1e-49dc-8c2c-42835f24622e\"]}",
    "contentItems": [{
        "contentType": "content-item",
        "contentId": "053d7b0b-dd1e-49dc-8c2c-42835f24622e",
        "tcId": "c0df2dad-4fa4-49a5-bdc3-f073335f80c4",
        "contentFields": {
            "Buttons": [{
                "Action": {
                    "_type": "MotdNavigateToShopAction",
                    "navAction": "1",
                    "offerTrackingId": "/Game/Catalog/NewDisplayAssets/DAv2_CID_748_F_Hitman.DAv2_CID_748_F_Hitman"
                },
                "Style": "0",
                "Text": "Check it Out",
                "_type": "Button"
            }],
            "FullScreenBackground": {
                "Image": [{
                    "width": 1920,
                    "height": 1080,
                    "url": "https://cdn-live.prm.ol.epicgames.com/prod/f60460ca03f37d7bc2b4550796b9aea877030bcbaa176807e812a97e4d958bbca6f5feeb55df49f4e8dcc3e22a92f674-049dc464-736c-4786-b905-e24ff98ffd3f.jpeg?width=1920"
                }, {
                    "width": 960,
                    "height": 540,
                    "url": "https://cdn-live.prm.ol.epicgames.com/prod/f60460ca03f37d7bc2b4550796b9aea877030bcbaa176807e812a97e4d958bbca6f5feeb55df49f4e8dcc3e22a92f674-049dc464-736c-4786-b905-e24ff98ffd3f.jpeg?width=960"
                }],
                "_type": "FullScreenBackground"
            },
            "FullScreenBody": "Unforgettable and inescapable.",
            "FullScreenTabTitle": "N/A",
            "FullScreenTitle": "Siren",
            "TeaserBackground": {
                "Image": [{
                    "width": 1024,
                    "height": 512,
                    "url": "https://cdn-live.prm.ol.epicgames.com/prod/f60460ca03f37d7bc2b4550796b9aea8e5c84c11554a8ce8ec7771f0ad688246119b8547e41ffe3d16ed36ac9b42b2a2-45d80128-dc8f-41f7-a60a-6a5cbc86d688.jpeg?width=1024"
                }],
                "_type": "TeaserBackground"
            },
            "TeaserTitle": "Siren"
        },
        "contentSchemaName": "DynamicMotd",
        "contentHash": "5ddc351049dc1071bbdb7fd362cbe2c3"
    }]
}

from fnbr.js.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.