Overview
The quiz sharing flow in IntelliQ allows users to share their completed quizzes with others. This guide explains the complete flow from sharing a quiz to viewing shared quiz details.Flow Diagram
-
Share Quiz (Quiz Owner Only)
For Singleplayer:
For Multiplayer:Share a completed quiz with specified visibility settings:
-
Update Share Settings (Quiz Owner Only)
Update visibility settings for a shared quiz:The response includes:
- Updated share settings
- Complete quiz details
- Performance statistics
- Share URL
-
View Shared Quiz (Public Access)
Retrieve the shared quiz details, including:
- Quiz content and metadata
- Creator information (if not anonymous)
- Share settings and URL
- Performance statistics
Response Examples
Error Handling
The API will return appropriate error codes and messages if:- The quiz ID doesn’t exist
- The user is not authorized to share the quiz
- The share ID is invalid
- The shared quiz is not public
- The user is not authorized to modify share settings
Share Settings
- isPublic: Controls whether the quiz is accessible to anyone with the share URL
- isAnonymous: Determines if the creator’s name is displayed when viewing the shared quiz
- shareUrl: A unique URL that can be used to access the shared quiz
- shareId: A unique identifier for the shared quiz instance
Security Considerations
- Only quiz owners can create and modify share settings
- Non-public quizzes are not accessible even with the share URL
- Anonymous sharing hides creator information but maintains quiz content
- Share URLs are unique and cryptographically secure