charlesbel / Microsoft-Rewards-Farmer

A simple bot that uses selenium to farm Microsoft Rewards written in Python
MIT License
975 stars 261 forks source link

Read News Tasks and Daily Login Bonus on Mobile not claiming #199

Open Kurotaku-sama opened 1 year ago

Kurotaku-sama commented 1 year ago

There are 30 Points that can be gathered when reading 10 News on the bing app, this Task is missing. Also the daily Login Bonus isn't getting taken on the Mobile Bing.

charlesbel commented 1 year ago

Going to check that thanks

EastArctica commented 1 year ago

Here is my method for auto completing the news tasks, I need to wait until my daily check in resets to figure that one out.

News Tasks ```js const genRanHex = size => [...Array(size)].map(() => Math.floor(Math.random() * 16).toString(16)).join(''); const sleep = ms => new Promise(resolve => setTimeout(resolve, ms)); async function main() { for (let i = 0; i < (30 / 3); i++) { await fetch('https://prod.rewardsplatform.microsoft.com/dapi/me/activities', { method: 'POST', headers: { 'Host': 'prod.rewardsplatform.microsoft.com', 'content-type': 'application/json', 'x-rewards-appid': 'SAIOS/25.8.410802001', 'x-rewards-language': 'en', 'accept': '*/*', 'authorization': 'Bearer REDACTED', 'x-rewards-country': 'US', 'accept-language': 'en-US;q=1.0', 'user-agent': 'Bing/25.8.410802001 (com.microsoft.bing; build:410802001; iOS 17.0.0) Alamofire/5.3.0', 'x-rewards-ismobile': 'true' }, body: JSON.stringify({ 'type': 101, 'attributes': { 'offerid': 'ENUS_readarticle3_30points' }, 'amount': 1, 'country': 'US', 'id': genRanHex(64) }) }).then(req => req.json()).then(console.log); await sleep(1000); } } main(); ```
EastArctica commented 1 year ago

Here's my JS code for triggering the mobile daily check in, unsure if it works... see comment for details on the id field.

Daily Check In Script ```js const { token } = require('./config.json'); const startTime = new Date(); fetch('https://prod.rewardsplatform.microsoft.com/dapi/me/activities', { method: 'POST', headers: { 'Host': 'prod.rewardsplatform.microsoft.com', 'content-type': 'application/json', 'x-rewards-appid': 'SAIOS/25.8.410802001', 'x-rewards-language': 'en', 'accept': '*/*', 'authorization': token, 'x-rewards-country': 'us', 'accept-language': 'en-US;q=1.0', 'user-agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Mobile/15E148 Safari/605.1.15 BingSapphire/1.0.410802001', 'x-rewards-ismobile': '' }, body: JSON.stringify({ 'type': 101, 'attributes': { 'signIn': false, 'date': `${startTime.getFullYear()}${(startTime.getMonth() + 1).toString().padStart(2, '0')}${startTime.getDate().toString().padStart(2, '0')}`, 'offerid': 'Gamification_Sapphire_DailyCheckIn', 'timezoneOffset': '-04:00:00' }, 'amount': 1, 'country': 'us', // TODO: I don't know if this is a unique id or not. I need to wait until tomorrow to check. For now, I have anonymized it. 'id': '8e88ce4d-5dc1-40ab-973c-4386b3a71cc4', 'risk_context': {}, }) }); ```
theskid31 commented 1 year ago

Here is my method for auto completing the news tasks, I need to wait util my daily check in resets to figure that one out.

News Tasks

how do i run this ,do i create a json file with that script and i tried opening it via firefox but get errors thanks

GlitteringReturn commented 11 months ago

@EastArctica has this been implemented in your pull requests?