mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 23:58:31 -06:00
tokens
This commit is contained in:
@@ -21,3 +21,5 @@ courses:
|
|||||||
name: adv-frontend-old
|
name: adv-frontend-old
|
||||||
- path: ./1810/2026-spring-alex/modules/
|
- path: ./1810/2026-spring-alex/modules/
|
||||||
name: Web Intro
|
name: Web Intro
|
||||||
|
- path: ./1810/2025-spring-alex/in-person/
|
||||||
|
name: web-2025
|
||||||
|
|||||||
@@ -2,3 +2,21 @@
|
|||||||
###
|
###
|
||||||
GET https://snow.instructure.com/api/v1/courses/1155200/tabs
|
GET https://snow.instructure.com/api/v1/courses/1155200/tabs
|
||||||
Authorization: Bearer {{$dotenv CANVAS_TOKEN}}
|
Authorization: Bearer {{$dotenv CANVAS_TOKEN}}
|
||||||
|
|
||||||
|
|
||||||
|
###
|
||||||
|
GET https://snow.instructure.com/api/v1/users/self
|
||||||
|
Authorization: Bearer {{$dotenv CANVAS_TOKEN}}
|
||||||
|
|
||||||
|
# https://developerdocs.instructure.com/services/canvas/TokensController/create
|
||||||
|
###
|
||||||
|
POST https://snow.instructure.com/api/v1/users/self/tokens
|
||||||
|
Authorization: Bearer {{$dotenv CANVAS_TOKEN}}
|
||||||
|
Content-Type: application/json
|
||||||
|
|
||||||
|
{
|
||||||
|
"token": {
|
||||||
|
"purpose": "canvas-management-test",
|
||||||
|
"expires_at": "2027-01-01T00:00:00Z"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -12,12 +12,11 @@ export interface DraggingContextInterface {
|
|||||||
itemDropOnDay: (e: DragEvent, droppedOnDay: string) => void;
|
itemDropOnDay: (e: DragEvent, droppedOnDay: string) => void;
|
||||||
itemDropOnModule: (e: DragEvent, moduleName: string) => void;
|
itemDropOnModule: (e: DragEvent, moduleName: string) => void;
|
||||||
}
|
}
|
||||||
const defaultDraggingValue: DraggingContextInterface = {
|
export const DraggingContext =
|
||||||
|
createContext<DraggingContextInterface>({
|
||||||
itemDropOnDay: () => {},
|
itemDropOnDay: () => {},
|
||||||
itemDropOnModule: () => {},
|
itemDropOnModule: () => {},
|
||||||
};
|
});
|
||||||
export const DraggingContext =
|
|
||||||
createContext<DraggingContextInterface>(defaultDraggingValue);
|
|
||||||
|
|
||||||
export function useDraggingContext() {
|
export function useDraggingContext() {
|
||||||
return useContext(DraggingContext);
|
return useContext(DraggingContext);
|
||||||
|
|||||||
Reference in New Issue
Block a user