sam_ofloinn
Community Participant
Activity Feed
My Posts
Post Details Date Published Views Kudos

Canvas cURL pagination: doesn't include "last" page link?

For my project I need to get all the pages of data for a project. I can make cURL requests on data endpoints and get all the pages I want. For example, see this DD of some page data that includes ...

01-20-2020

646

0

Find a Course by SIS Course ID, when given only part of that SIS ID?

In my custom application, I have a program that successfully searches for and finds a course when given its SIS Course ID. Using this code written in PHP Laravel: $sis_course_id = $request->sis_...

12-03-2019

2433

2

How do I find a course by name?

My current project asks me to develop a webpage that allows someone to find a single course, if given its name or ID. Let's say name, for now. To that end, I'm following the official documentati...

11-27-2019

881

1

Find user in Canvas if given their name?

I'm creating a custom web application for my university that allows users to search for a single user in Canvas. I've studied the documentation here: https://canvas.instructure.com/doc/api/users.h...

11-25-2019

521

2

Is it possible to create a new Canvas page?

I'm developing a new application for Canvas, and I just want to verify one thing. Is it possible to program a new webpage on my server, https://my.instructure.com, using a text editor or other materi...

11-15-2019

474

1

How to use Developer Key for OAuth2 Authentication?

So I'm the admin of a Canvas test server, and want to set up OAuth2 authentication for my webpage. I've generated a developer key after logging into "https://my.test.instructure.com" and setting up ...

11-13-2019

3538

2

OAuth2 Authentication: unknown client in Canvas?

I'm developing an OAuth2 Authentication client-server program using Laravel. My code looks like this: Route::get('/hi', function() {    // Build the query parameter string to pas...

11-12-2019

3664

1

Why does "api/v1/users/self" refer to only the same account every time?

In Laravel, I'm creating my own page, where I want to check if the user is a Canvas admin. If so, they have permission to see the page. Else, they're redirected. In each case, both pages reveal the f...

11-05-2019

990

2

Any way to predict the value layout of curl_exec()?

Hi, hope all is well. I run a successful curl request as you can see below: $ch = curl_init() $headers = ['Authorization: Bearer ' . my_token_here]; $url = "https://my.test.instructure.com/api...

08-06-2019

300

0

cUrl value changes despite consistent arguments, ruins json_decode as a result? How to respond?

So a curl request I do seems to always return one of four different results. Every time it has the same token, and the same header, and checks the same URL (https://my.test.instructure.com/api/v1/ac...

07-16-2019

227

1

Can I explore all the values of a directory without pagination?

Hi, I hope all is well. I am writing a canvas script in PHP Laravel that returns all values in a directory "https://my.test.instructure.com/api/v1/accounts/1/courses". I fetch the directory with a c...

05-21-2019

948

1

cURL Header, Pagination Error - Can't Collect Data and Paginate with the same query?

Hi, With PHP, Laravel and cURL, I am trying to retrieve data and then express it in a paginatable form, and seem to be caught between a rock and a hard place. I am familiar with how to handle pag...

04-11-2019

2521

3

Can I check each of my courses for a certain folder more efficiently than this?

Hi, I am checking all the courses in my Canvas database to see which ones have a certain folder. Let's call this folder "BB_Direct." At the moment, using cUrl requests like below, I check the acc...

04-08-2019

821

1

How should I check a text file to see if it has a new course for my Canvas project?

Hi, I hope this is the right place to ask. I have a "courses.txt" which contains the courses for my Canvas community. This will have new classes added to it as time goes on, and I want a way to ...

03-19-2019

659

3

PHP Pagination - buttons?

Hi, I'm struggling with working pagination in PHP. According to the documentation, I can use those links to go to the next page of the collected results. I can put out a certain amount of ...

02-07-2019

1419

2

What data integration tools are recommended for Canvas?

I'm designing a website with Canvas and it needs to be able to use data integration.  Are there any tools that would help me with this? The only one I have been recommended so far is Cur...

01-16-2019

452

0

View All Posts
Group Hubs for sam_ofloinn
Community Statistics
Posts 70
Solutions 1
Kudos given 55
Kudos received 31
Member Since ‎01-16-2019