Jump to content

API generating wrong information.


Recommended Posts

I am working on an application for my website. When I grab notifications using OAuth2, grabbing "/core/members/{id}/notifications" There is 2 big issues. 

  1. MOST of the return data tells me that it is a "Guest" that linked a comment, or a "Guest" did something. But I go online, and it shows it was a member. For starters, I don't allow guests to interact on my site, and there is no anonymous actions either. 
  2. I can go on my site, and it right now says there is 8 unread notifications. Then the data that comes back shows only 3 that are unread. Only the ones that say "Guest" return as unread, while the ones that DO say the actual user, return as read, but on the site, it will show unread every time. One of these are not telling me the truth.

 

Here is a simple snippet that was returned to me, as well as a pic to show this is not correct.

        {
            "notificationType": "new_likes",
            "notificationApp": "core",
            "itemClass": "IPS\downloads\File\Comment",
            "itemId": 9128,
            "subItemClass": "IPS\downloads\File\Comment",
            "subItemId": 9128,
            "item": {
                "id": 9128,
                "item_id": 2700,
                "author": {
                    "id": 3,
                    "name": "Schaken",
                    "title": null,
                    "formattedName": "Schaken",
                    "primaryGroup": {
                        "id": 4,
                        "name": "Administrators",
                        "formattedName": "Administrators"
                    },
                    "joined": "2019-01-19T18:21:24Z",
                    "reputationPoints": 2795,
                    "photoUrl": "https://XXXXXXXX3381a472bf76c7dbdc.png",
                    "photoUrlIsDefault": false,
                    "coverPhotoUrl": "https://XXXXXXXXnShot1-Copy-Copy.png.186194ebd604576ee027495e84b23e77.png",
                    "profileUrl": "https://XXXXXXXX/",
                    "posts": 2290,
                    "lastActivity": "2022-10-09T18:18:08Z",
                    "birthday": "1/20/1986",
                    "profileViews": 69950,
                    "customFields": {
                        "4": {
                            "name": "Retained",
                            "fields": []
                        },
                        "1": {
                            "name": "Personal Information",
                            "fields": {
                                "1": {
                                    "name": "About Me",
                                    "value": "Removed Information"
                                }
                            }
                        },
                        "3": {
                            "name": "Tip Jar",
                            "fields": {
                                "2": {
                                    "name": "Donate (Ko-Fi)",
                                    "value": "https://XXXXXXXXbed=true&preview=true"
                                }
                            }
                        },
                        "5": {
                            "name": "Explicit content",
                            "fields": {
                                "4": {
                                    "name": "Explicit Content",
                                    "value": "0"
                                }
                            }
                        }
                    },
                    "rank": {
                        "id": 9,
                        "name": "Jedi",
                        "icon": "https:/XXXXXXXXecfbd36c3d7acd948d3c218cccdc32.gif",
                        "points": 4000
                    },
                    "achievements_points": 93565,
                    "allowAdminEmails": false,
                    "completed": true
                },
                "date": "2022-10-09T18:18:11Z",
                "content": "those are upcoming features. NOT available to the public yet.",
                "hidden": false,
                "url": "https://XXXXXXXXomment&comment=9128&tab=comments",
                "reactions": {
                    "139409": [
                        {
                            "title": "Haha",
                            "id": 3,
                            "value": 1,
                            "icon": "https://XXXXXXXXs/react_haha.png"
                        }
                    ]
                }
            },
            "itemSub": {
                "id": 9128,
                "item_id": 2700,
                "author": {
                    "id": 3,
                    "name": "Schaken",
                    "title": null,
                    "formattedName": "Schaken",
                    "primaryGroup": {
                        "id": 4,
                        "name": "Administrators",
                        "formattedName": "Administrators"
                    },
                    "joined": "2019-01-19T18:21:24Z",
                    "reputationPoints": 2795,
                    "photoUrl": "https://XXXXXXXXbf76c7dbdc.png",
                    "photoUrlIsDefault": false,
                    "coverPhotoUrl": "https://XXXXXXXXe84b23e77.png",
                    "profileUrl": "https://XXXXXXXX/",
                    "posts": 2290,
                    "lastActivity": "2022-10-09T18:18:08Z",
                    "birthday": "1/20/1986",
                    "profileViews": 69950,
                    "customFields": {
                        "4": {
                            "name": "Retained",
                            "fields": []
                        },
                        "1": {
                            "name": "Personal Information",
                            "fields": {
                                "1": {
                                    "name": "About Me",
                                    "value": "Removed Information :)"
                                }
                            }
                        },
                        "3": {
                            "name": "Tip Jar",
                            "fields": {
                                "2": {
                                    "name": "Donate (Ko-Fi)",
                                    "value": "XXXXXXXXXXXhidefeed=true&widget=true&embed=true&preview=true"
                                }
                            }
                        },
                        "5": {
                            "name": "Explicit content",
                            "fields": {
                                "4": {
                                    "name": "Explicit Content",
                                    "value": "0"
                                }
                            }
                        }
                    },
                    "rank": {
                        "id": 9,
                        "name": "Jedi",
                        "icon": "https://XXXXXXXX.com/uploads/monthly_2022_07/RotatingGear.gif.f4ecfbd36c3d7acd948d3c218cccdc32.gif",
                        "points": 4000
                    },
                    "achievements_points": 93565,
                    "allowAdminEmails": false,
                    "completed": true
                },
                "date": "2022-10-09T18:18:11Z",
                "content": "those are upcoming features. NOT available to the public yet.",
                "hidden": false,
                "url": "https://XXXXXXXX.com/file/mod-hunter?do=findComment&comment=9128&tab=comments",
                "reactions": {
                    "139409": [
                        {
                            "title": "Haha",
                            "id": 3,
                            "value": 1,
                            "icon": "https://XXXXXXXX.com/uploads/reactions/react_haha.png"
                        }
                    ]
                }
            },
            "sentDate": "2022-10-09T18:20:09Z",
            "updatedDate": "2022-10-09T18:20:09Z",
            "readDate": null,
            "notificationData": {
                "title": "somebody reacted to a comment on a Mod Mod Hunter",
                "url": "https://XXXXXXXX.com/file/mod-hunter?do=findComment&comment=9128&tab=comments",
                "content": "those are upcoming features. NOT available to the public yet.",
                "author": {
                    "id": null,
                    "name": "Guest",
                    "title": null,
                    "timeZone": "UTC",
                    "formattedName": "Guest",
                    "primaryGroup": {
                        "id": 2,
                        "name": "Guests",
                        "formattedName": "Guests"
                    },
                    "secondaryGroups": [],
                    "email": null,
                    "joined": "2022-10-09T18:21:07Z",
                    "registrationIpAddress": "XXXXXXXX",
                    "warningPoints": 0,
                    "reputationPoints": 0,
                    "photoUrl": "https://XXXXXXXX.com/uploads/set_resources_8/84c1e40ea0e759e3f1505eb1788ddf3c_default_photo.png",
                    "photoUrlIsDefault": false,
                    "coverPhotoUrl": "",
                    "profileUrl": null,
                    "validating": false,
                    "posts": 0,
                    "lastActivity": null,
                    "lastVisit": null,
                    "lastPost": null,
                    "birthday": null,
                    "profileViews": null,
                    "customFields": [],
                    "rank": {
                        "id": 1,
                        "name": "NOOB",
                        "icon": "https://XXXXXXXX.com/uploads/monthly_2021_09/Empty.png.3fdbf1263ccbef13547c106243f8d99a.png",
                        "points": 0
                    },
                    "achievements_points": null,
                    "allowAdminEmails": false,
                    "completed": false
                },
                "unread": true
            }
        },
		

here is an image showing different data.

 Could contain: Text

 

Link to comment
Share on other sites

We would need to look further into this for you, however the access details on file appear to be incorrect or missing. Could you please update these details by visiting your client area, selecting the relevant purchase, then clicking "Review/Update Access Information" under the "Stored Access Information" section. 

We look forward to further assisting you. 

 

Link to comment
Share on other sites

I just updated. If there is something you need, please let me know. I CAN provide FTP, but I don't even use it really, My Control panel has a file explorer I use. Plus, I'm stingy with who has access to it. My website is what financially supports me and my 2 daughters, so giving access to that makes my nerves shot, sorry. I do provide ACP access for you, which with that you should be able to see anything you would need short of the PHP files, which should be the same. I am not using PHP 8.0 yet, I plan on updating today actually, so if you want to wait until tomorrow for that to be done first, then I understand.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...