TheAlphaSchoolSystemPTYLTD / student-details

Student Details API
13 stars 10 forks source link

Turn on Photo sync for Wonde dev environment #61

Closed cwool closed 1 year ago

cwool commented 1 year ago

Hi,

The getStudentsDetails method doesn't let us sync photos when using the parameter even when I've uploaded a test photo. Can we have this fixed? Cheers.

URL: https://api.tassweb.com.au/tassweb/api

Company: 30

App code: WONDESD

leonseremelis-tass commented 1 year ago

Hello, we appreciate your inquiry.

Are you receiving any error in your API response? To utilize the "includephoto":"true" flag effectively, it's essential to ensure that the "Enable Photos" setting is configured as "Yes" on the TASS API Application Details screen within TASS API Maintenance. Should you require guidance on this matter, please don't hesitate to reach out to our dedicated Customer Care team.

cwool commented 1 year ago

Hi Leon,

Parameters passed: {"currentstatus":"current","includephoto":"true"}

Error received:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

404 - File or directory not found.

404 - File or directory not found.

The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

{"status":"invalid","forms":{"includephoto":{"options":"","type":"bool"},"thumbnail":{"options":"","type":"bool"},"currentstatus":{"required":true}},"msg":"Not Found","invalid":{},"__locks":{}}

Regarding the configuration options, everything is greyed out, so we're probably restricted from this settings page to enable the photos. Happy to do the steps mentioned if you make our account have access to these screens. Screenshot attached for reference.

Screenshot 2023-08-10 at 5 09 17 pm
cwool commented 1 year ago

Hi, photos have now been turned on but having a different error now. When doing the getStudentsDetails call with params {"currentstatus":"current","includephoto":"true", "year_group":"12"} I get the error below:

404 - File or directory not found.

            <h3>The resource you are looking for might have been removed, had its name changed, or is temporarily
                unavailable.</h3>

When trying the year 12 who I've added a photo to with the parameters {"currentstatus":"current","includephoto":"true", "code":"20076"} I am able to get the student and the photo back correctly.

Why am I getting an error message when there is at least one photo attached? Shouldn't the first call just return photo as empty except for this one student instead of failing? Or is there something else at play here?

Help on this would be much appreciated as it's the last hurdle getting the photos syncing in batches of year levels.

leonseremelis-tass commented 1 year ago

The default behaviour if a student photo does not exist is to retrieve the default Unavailable.gif image. It seems like this might be missing in your case, I will follow up on this and let you know.

cwool commented 1 year ago

Hi Leon, we're still getting the 404 error. Could you please follow up on this and let me know when it's resolved?

leonseremelis-tass commented 1 year ago

Ok, I see there was still an error coming onto the logs for cmy 30. I have added the default .gifs there so can you try again and let me know how you go?