Comments (10)
I will be displaying the content returned so it is customizable as well as having different variations of "popups"
Right now I have reward, penalty, info, legal, and update. You don't have to worry much about these, but you will have to return me a number corresponding to the type of popup.
Now for the actually content it will be rendering, I will need the header, body, and reward, these will all be in the form of text. And once I finish making all these widgets I will write prompts for you
from ctwapi.
For Rewards, all we have right now are the leaderboard so
For placing (top ten, top twenty, 1st, 2nd, 3rd) in the (daily, weekly) leaderboard you have been awarded
For uploading an incorrect image, you have deducted
obviously we can add more at any time without any changes to the front-end, so it doesn't really madder that much what they are now
from ctwapi.
Also we can use this endpoint for changing numbers of the frontend like multipliers or leaderboard rewards. So add support for that aswell
from ctwapi.
What format should the response have?
Also, wouldn't you want a list of recent exp changes? Like just requesting the latest one may miss one
from ctwapi.
The response could just be an array of dictionaries, each dictionary being a "notifier"
The type of if notifier would be a string reward, penalty, info, legal, and update. Header String, Body string, Reward String
For changes in frontend numbers like rewards you can put a bool and data this is all I have for now
dailyBonusesList = [1.25, 2, 4];
leaderboardBaseRewardsList = [1000, 3000];
leaderboardTopThree = [
[3000, 2000, 1000],
[6000, 3000, 2000]
];
from ctwapi.
I didn't get your message.
How about this:
[
{
"description":"Finished at #1 on the daily leaderbaord",
"reference":"2024-07-08",
"type":"leaderbaord",
"timestamp": "2024-07-08T0:04:10.329Z",
"effect":4000
},
{
"description":"Image does not contain a window",
"reference":"b0d070d6-702b-4242-ab29-f5410b2a2c92",
"type":"image_check",
"timestamp": "2024-07-07T23:54:20.032Z",
"effect":-400
}
]
The type defines what source the change came from.
Reference is an unique id for the change (boardname for leaderbaord, image id for images) changes based on type.
The effect is by how much the exp changed.
The description is text that can be displayed to the user.
The timestamp states when the change happened. (mostly for ordering)
from ctwapi.
Yeah, that works
from ctwapi.
Also for testing can you make it always return all of them
from ctwapi.
Also for testing can you make it always return all of them
This
from ctwapi.
It does return you all of them. All in the last 30 days (that is how long they are stored)
from ctwapi.
Related Issues (20)
- 500 error when calling skip endpoint HOT 4
- Json file
- Daily streak doesn't seem to work HOT 1
- How do you want the legal flow HOT 1
- Issues with image upload endpoint HOT 7
- Equal right for words HOT 1
- Change daily quest reward
- exp/history changes HOT 3
- Upload error HOT 2
- Issue with daily quest HOT 1
- exp/history error HOT 1
- more image upload issues HOT 3
- api/object/next issue HOT 1
- Add connect to google id
- Add account deletion endpoint
- Add endpoint to abort deletion
- Change Multiplier
- Error when calling leaderboard
- Losing streak num
- I tried to tell you HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ctwapi.