From one of our team members...
I basically tried crafting it based on the documentation on
how to use their API. I have a C# wrapper I found and based on that tried
mimicking their formatting that they use, however it’s most likely not
formatted correctly since I had to try to fill in some missing parts I wasn’t
sure about and probably still have more missing parts in the URL. Our URL
making system I coded in has worked when I do calls such as getting courses and
logging in to get a web token response via Unity web requesting.
I know the grade function does need course ID user ID and a grade but I’m unsure how to add that data in or creating a link to do such a thing.
Basically I took our cloud URL, added in the webservice, rest format, and trying to access the server.php. This was where I went to use the get courses function which operates fine since I didn’t need to provide data first.
using that above link, note the token gets generated in our app at runtime via the login functions.
Is the format correct on this link to do what he wants to do? The actual link (I changed the .com name) gave a "Webservice Access exception" error
We’re attempting to
send grades to a specific class via C# Unity web requests. I am unsure on the
format needed to be included.
We are using the default webservice (or I’m hoping that’s what that’s doing in the link I could be wrong)We’re using our cloud server for this. I’m not sure if that’s the correct format, plus I’m not sure how to attack data to that link since I’m still learning how GET and POST and PHP work translating it to Unity C# web request lingo.
When I go to that link I get Webservice Access exception, I know we have permission on webservce for grades and grade functions, but I can assume I may be missing some items/fields.
Any ideas on how to send a grade update to our course on moodle via a web request?