diff --git a/app/Http/Controllers/Api/V1/CurrikiInteractiveVideoIntegration/Kaltura/KalturaGeneratedAPIClientController.php b/app/Http/Controllers/Api/V1/CurrikiInteractiveVideoIntegration/Kaltura/KalturaGeneratedAPIClientController.php index 2f4f20986..46ecbc2ad 100644 --- a/app/Http/Controllers/Api/V1/CurrikiInteractiveVideoIntegration/Kaltura/KalturaGeneratedAPIClientController.php +++ b/app/Http/Controllers/Api/V1/CurrikiInteractiveVideoIntegration/Kaltura/KalturaGeneratedAPIClientController.php @@ -23,6 +23,7 @@ use App\Exceptions\GeneralException; use App\Http\Requests\V1\LtiTool\KalturaAPISettingRequest; use App\Repositories\MediaSources\MediaSourcesInterface; +use App\Models\LtiTool\LTIToolType; class KalturaGeneratedAPIClientController extends Controller { @@ -31,7 +32,6 @@ class KalturaGeneratedAPIClientController extends Controller protected $kalturaMediaEntryFilter; protected $kalturaFilterPager; private $ltiToolSettingRepository; - private $mediaSourcesRepository; /** * KalturaGeneratedAPIClientController constructor. @@ -41,11 +41,9 @@ class KalturaGeneratedAPIClientController extends Controller * @param KalturaMediaEntryFilter $kMEF * @param KalturaFilterPager $kFP * @param LtiToolSettingInterface $ltiToolSettingRepository - * @param MediaSourcesInterface $mediaSourcesRepository */ public function __construct(KalturaConfiguration $kC, KalturaClient $kClient, KalturaMediaEntryFilter $kMEF, - KalturaFilterPager $kFP, LtiToolSettingInterface $ltiToolSettingRepository, - MediaSourcesInterface $mediaSourcesRepository + KalturaFilterPager $kFP, LtiToolSettingInterface $ltiToolSettingRepository ) { $this->kalturaConfiguration = $kC; @@ -53,7 +51,6 @@ public function __construct(KalturaConfiguration $kC, KalturaClient $kClient, Ka $this->kalturaMediaEntryFilter = $kMEF; $this->kalturaFilterPager = $kFP; $this->ltiToolSettingRepository = $ltiToolSettingRepository; - $this->mediaSourcesRepository = $mediaSourcesRepository; } /** @@ -80,15 +77,11 @@ public function __construct(KalturaConfiguration $kC, KalturaClient $kClient, Ka */ public function getMediaEntryList(KalturaAPISettingRequest $request) { - $getParam = $request->only([ - 'organization_id', - 'pageSize', - 'pageIndex', - 'searchText' - ]); + $getParam = $request->all(); $videoMediaSources = getVideoMediaSources(); - $mediaSourcesId = $this->mediaSourcesRepository->getMediaSourceIdByName($videoMediaSources['kaltura']); - $ltiRowResult = $this->ltiToolSettingRepository->getRowRecordByOrgAndToolType($getParam['organization_id'], $mediaSourcesId); + $ltiToolTypeRowRecord = LTIToolType::where('name', $videoMediaSources['kaltura'])->first(); + $ltiToolTypeId = ( empty($ltiToolTypeRowRecord) ) ? 1 : $ltiToolTypeRowRecord->id; + $ltiRowResult = $this->ltiToolSettingRepository->getRowRecordByColumnMatch($getParam['organization_id'], $ltiToolTypeId); // Credentials For Kaltura Session if ($ltiRowResult) { $secret = $ltiRowResult->tool_secret_key; diff --git a/app/Http/Controllers/Api/V1/LtiTool/LtiToolSettingsController.php b/app/Http/Controllers/Api/V1/LtiTool/LtiToolSettingsController.php index 3b99d6efe..c7a6d193a 100644 --- a/app/Http/Controllers/Api/V1/LtiTool/LtiToolSettingsController.php +++ b/app/Http/Controllers/Api/V1/LtiTool/LtiToolSettingsController.php @@ -17,6 +17,7 @@ use Illuminate\Http\Request; use Illuminate\Http\Response; use Illuminate\View\View; +use App\Models\LtiTool\LTIToolType; /** * @authenticated @@ -80,7 +81,7 @@ public function index(Request $request, Organization $suborganization) public function show(Organization $suborganization, $id) { $setting = $this->ltiToolSettingRepository->find($id); - return new LtiToolSettingResource($setting->load('user', 'organization', 'mediaSources')); + return new LtiToolSettingResource($setting->load('user', 'organization', 'ltiToolType')); } /** @@ -94,7 +95,7 @@ public function show(Organization $suborganization, $id) * @bodyParam tool_name string required LTI Tool Settings tool name Example: Kaltura API Integration * @bodyParam tool_url string required LTI Tool Settings tool url Example: https://4515783.kaf.kaltura.com * @bodyParam lti_version string required LTI Tool Settings lti version Example: LTI-1p0 - * @bodyParam media_source_id int required Id of and video media sources Example: 3 + * @bodyParam lti_tool_type_id int required Id of lti tool type Example: 1 * @bodyParam tool_description string optional LTI Tool Settings description Example: Kaltura API Testing * @bodyParam tool_custom_parameter string optional LTI Tool Settings custom param Example: embed=true * @bodyParam tool_consumer_key string optional LTI Tool Settings consumer key Example: 4515783 @@ -116,24 +117,12 @@ public function show(Organization $suborganization, $id) */ public function store(StoreLtiToolSettingRequest $request, Organization $suborganization) { - $data = $request->only([ - 'user_id', - 'organization_id', - 'tool_name', - 'tool_url', - 'lti_version', - 'media_source_id', - 'tool_description', - 'tool_custom_parameter', - 'tool_consumer_key', - 'tool_secret_key', - 'tool_content_selection_url' - ]); + $data = $request->all(); $parse = parse_url($data['tool_url']); $data['tool_domain'] = $parse['host']; $data['tool_content_selection_url'] = (isset($data['tool_content_selection_url']) && $data['tool_content_selection_url'] != '') ? $data['tool_content_selection_url'] : $data['tool_url']; $response = $this->ltiToolSettingRepository->create($data); - return response(['message' => $response['message'], 'data' => new LtiToolSettingResource($response['data']->load('user', 'organization', 'mediaSources'))], 200); + return response(['message' => $response['message'], 'data' => new LtiToolSettingResource($response['data']->load('user', 'organization', 'ltiToolType'))], 200); } @@ -149,7 +138,7 @@ public function store(StoreLtiToolSettingRequest $request, Organization $suborga * @bodyParam tool_name string required LTI Tool Settings tool name Example: Kaltura API Integration * @bodyParam tool_url string required LTI Tool Settings tool url Example: https://4515783.kaf.kaltura.com * @bodyParam lti_version string required LTI Tool Settings lti version Example: LTI-1p0 - * @bodyParam media_source_id int required Id of and video media sources Example: 3 + * @bodyParam lti_tool_type_id int required Id of lti tool type Example: 1 * @bodyParam tool_description string optional LTI Tool Settings description Example: Kaltura API Testing * @bodyParam tool_custom_parameter string optional LTI Tool Settings custom param Example: embed=true * @bodyParam tool_consumer_key string optional LTI Tool Settings consumer key Example: 4515783 @@ -166,24 +155,12 @@ public function store(StoreLtiToolSettingRequest $request, Organization $suborga */ public function update(UpdateLtiToolSettingRequest $request, Organization $suborganization, $id) { - $data = $request->only([ - 'user_id', - 'organization_id', - 'tool_name', - 'tool_url', - 'lti_version', - 'media_source_id', - 'tool_description', - 'tool_custom_parameter', - 'tool_consumer_key', - 'tool_secret_key', - 'tool_content_selection_url' - ]); + $data = $request->all(); $parse = parse_url($data['tool_url']); $data['tool_domain'] = $parse['host']; $data['tool_content_selection_url'] = (isset($data['tool_content_selection_url']) && $data['tool_content_selection_url'] != '') ? $data['tool_content_selection_url'] : $data['tool_url']; $response = $this->ltiToolSettingRepository->update($id, $data); - return response(['message' => $response['message'], 'data' => new LtiToolSettingResource($response['data']->load('user', 'organization', 'mediaSources'))], 200); + return response(['message' => $response['message'], 'data' => new LtiToolSettingResource($response['data']->load('user', 'organization', 'ltiToolType'))], 200); } /** @@ -207,19 +184,15 @@ public function destroy(Organization $suborganization, $id) /** * Get LTI Tool Type List * - * Get filter based media sources list for specified suborganization. + * Get lti tool type list from lti_tool_type table. * - * @urlParam suborganization required The Id of a suborganization Example: 1 - * - * @responseFile responses/organization/filter-media-source.json - * - * @param Organization $suborganization + * @responseFile 200 responses/admin/lti-tool/lti-tool-type-list.json * * @return LtiToolSettingResource */ - public function getLTIToolTypeList(Organization $suborganization) + public function getLTIToolTypeList() { - $ltiToolType = $suborganization->filterBasedMediaSources->where('media_type', 'Video'); + $ltiToolType = LTIToolType::get(); return new LtiToolSettingResource($ltiToolType); } } diff --git a/app/Http/Requests/V1/LtiTool/StoreLtiToolSettingRequest.php b/app/Http/Requests/V1/LtiTool/StoreLtiToolSettingRequest.php index 99d05a25b..0b28cbd52 100644 --- a/app/Http/Requests/V1/LtiTool/StoreLtiToolSettingRequest.php +++ b/app/Http/Requests/V1/LtiTool/StoreLtiToolSettingRequest.php @@ -34,7 +34,7 @@ public function rules() 'tool_name' => 'required|string|max:255|unique:lti_tool_settings,tool_name,NULL,id,deleted_at,NULL,organization_id,' . $orgId, 'tool_url' => 'required|url|max:255|unique:lti_tool_settings,tool_url,NULL,id,deleted_at,NULL,organization_id,' . $orgId, 'lti_version' => 'required|max:20', - 'media_source_id' => 'required|exists:media_sources,id|unique:lti_tool_settings,media_source_id,NULL,id,deleted_at,NULL,organization_id,' . $orgId, + 'lti_tool_type_id' => 'required|exists:lti_tool_type,id|unique:lti_tool_settings,lti_tool_type_id,NULL,id,deleted_at,NULL,organization_id,' . $orgId, 'tool_consumer_key' => 'nullable|string|max:255|unique:lti_tool_settings,tool_consumer_key,NULL,id,deleted_at,NULL,organization_id,' . $orgId, 'tool_secret_key' => 'required_with:tool_consumer_key|max:255|unique:lti_tool_settings,tool_secret_key,NULL,id,deleted_at,NULL,organization_id,' . $orgId, 'tool_content_selection_url' => 'nullable|url|max:255', @@ -51,9 +51,9 @@ public function rules() public function messages() { return [ - 'media_source_id.required' => 'The Tool Type field is required.', - 'media_source_id.exists' => 'The selected Tool Type is invalid.', - 'media_source_id.unique' => 'The Tool Type has already been taken.' + 'lti_tool_type_id.required' => 'The Tool Type field is required.', + 'lti_tool_type_id.exists' => 'The selected Tool Type is invalid.', + 'lti_tool_type_id.unique' => 'The Tool Type has already been taken.' ]; } } diff --git a/app/Http/Requests/V1/LtiTool/UpdateLtiToolSettingRequest.php b/app/Http/Requests/V1/LtiTool/UpdateLtiToolSettingRequest.php index e8719edc8..a58326b80 100644 --- a/app/Http/Requests/V1/LtiTool/UpdateLtiToolSettingRequest.php +++ b/app/Http/Requests/V1/LtiTool/UpdateLtiToolSettingRequest.php @@ -35,7 +35,7 @@ public function rules() 'tool_name' => 'required|string|max:255|unique:lti_tool_settings,tool_name, ' . $id . ' ,id,deleted_at,NULL,organization_id,' . $orgId, 'tool_url' => 'required|url|max:255|unique:lti_tool_settings,tool_url, ' . $id . ' ,id,deleted_at,NULL,organization_id,' . $orgId, 'lti_version' => 'required|max:20', - 'media_source_id' => 'required|exists:media_sources,id|unique:lti_tool_settings,media_source_id, ' . $id . ' ,id,deleted_at,NULL,organization_id,' . $orgId, + 'lti_tool_type_id' => 'required|exists:lti_tool_type,id|unique:lti_tool_settings,lti_tool_type_id, ' . $id . ' ,id,deleted_at,NULL,organization_id,' . $orgId, 'tool_consumer_key' => 'nullable|string|max:255|unique:lti_tool_settings,tool_consumer_key, ' . $id . ' ,id,deleted_at,NULL,organization_id,' . $orgId, 'tool_secret_key' => 'required_with:tool_consumer_key|max:255|unique:lti_tool_settings,tool_secret_key, ' . $id . ' ,id,deleted_at,NULL,organization_id,' . $orgId, 'tool_content_selection_url' => 'nullable|url|max:255', @@ -52,9 +52,9 @@ public function rules() public function messages() { return [ - 'media_source_id.required' => 'The Tool Type field is required.', - 'media_source_id.exists' => 'The selected Tool Type is invalid.', - 'media_source_id.unique' => 'The Tool Type has already been taken.' + 'lti_tool_type_id.required' => 'The Tool Type field is required.', + 'lti_tool_type_id.exists' => 'The selected Tool Type is invalid.', + 'lti_tool_type_id.unique' => 'The Tool Type has already been taken.' ]; } } diff --git a/app/Models/LtiTool/LTIToolType.php b/app/Models/LtiTool/LTIToolType.php new file mode 100644 index 000000000..891f41ec2 --- /dev/null +++ b/app/Models/LtiTool/LTIToolType.php @@ -0,0 +1,21 @@ +belongsTo(MediaSource::class, 'media_source_id', 'id'); + } + + /** + * @author Asim Sarwar + * Detail Define belongs to relationship with lti_tool_type table, + * @return Relationship + */ + public function ltiToolType() + { + return $this->belongsTo(LTIToolType::class, 'lti_tool_type_id', 'id'); } } diff --git a/app/Models/Organization.php b/app/Models/Organization.php index c46483935..79f36e7f0 100644 --- a/app/Models/Organization.php +++ b/app/Models/Organization.php @@ -179,17 +179,6 @@ public function mediaSources() ->withTimestamps(); } - /** - * Get the filter based media sources for the organization - */ - public function filterBasedMediaSources() - { - return $this->belongsToMany('App\Models\MediaSource', 'organization_media_sources') - ->withPivot('h5p_library', 'lti_tool_settings_status', 'media_sources_show_status') - ->withTimestamps() - ->wherePivot('lti_tool_settings_status', true); - } - /** * Get organization IDs for the full tree (ancestors and children) of this org */ diff --git a/app/Repositories/LtiTool/LtiToolSettingRepository.php b/app/Repositories/LtiTool/LtiToolSettingRepository.php index 3689f33e2..78a945f23 100644 --- a/app/Repositories/LtiTool/LtiToolSettingRepository.php +++ b/app/Repositories/LtiTool/LtiToolSettingRepository.php @@ -32,7 +32,7 @@ public function __construct(LtiToolSetting $model) public function getAll($data, $suborganization) { $perPage = isset($data['size']) ? $data['size'] : config('constants.default-pagination-per-page'); - $query = $this->model->with(['user', 'organization', 'mediaSources']); + $query = $this->model->with(['user', 'organization', 'ltiToolType']); if (isset($data['query']) && $data['query'] !== '') { $query->where(function ($query) use ($data) { $query->orWhere('tool_name', 'iLIKE', '%' . $data['query'] . '%'); @@ -48,7 +48,7 @@ public function getAll($data, $suborganization) } if (isset($data['filter']) && $data['filter'] > 0) { - $query = $query->whereHas('mediaSources', function ($qry) use ($data) { + $query = $query->whereHas('ltiToolType', function ($qry) use ($data) { $qry->where('id', $data['filter']); }); } @@ -134,4 +134,21 @@ public function getRowRecordByOrgAndToolType($orgId, $mediaSourcesId) Log::error($e->getMessage()); } } + + /** + * To get row record by org and lti_tool_type_id match + * + * @param $orgId integer + * @param $ltiToolTypeId int + * @return object + * @throws GeneralException + */ + public function getRowRecordByColumnMatch($orgId, $ltiToolTypeId) + { + try { + return $this->model->where([['organization_id','=', $orgId],['lti_tool_type_id','=', $ltiToolTypeId]])->first(); + } catch (\Exception $e) { + Log::error($e->getMessage()); + } + } } diff --git a/database/migrations/2023_02_27_095346_create_lti_tool_type_table.php b/database/migrations/2023_02_27_095346_create_lti_tool_type_table.php new file mode 100644 index 000000000..8330a0fff --- /dev/null +++ b/database/migrations/2023_02_27_095346_create_lti_tool_type_table.php @@ -0,0 +1,34 @@ +id(); + $table->string('name', 150); + $table->unique('name'); + $table->timestamps(); + $table->softDeletes(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('lti_tool_type'); + } +}; diff --git a/database/migrations/2023_02_27_103011_add_tool_type_option_to_lti_tool_type_table.php b/database/migrations/2023_02_27_103011_add_tool_type_option_to_lti_tool_type_table.php new file mode 100644 index 000000000..ac5b70c54 --- /dev/null +++ b/database/migrations/2023_02_27_103011_add_tool_type_option_to_lti_tool_type_table.php @@ -0,0 +1,30 @@ + AddToolTypeOptionToLtiToolTypeTableSeeder::class, + '--force' => true + ]); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + // + } +}; diff --git a/database/migrations/2023_03_02_093104_add_lti_tool_type_column_to_lti_tool_settings_table.php b/database/migrations/2023_03_02_093104_add_lti_tool_type_column_to_lti_tool_settings_table.php new file mode 100644 index 000000000..97baca70f --- /dev/null +++ b/database/migrations/2023_03_02_093104_add_lti_tool_type_column_to_lti_tool_settings_table.php @@ -0,0 +1,33 @@ +unsignedBigInteger('lti_tool_type_id')->nullable()->default(null); + $table->foreign('lti_tool_type_id')->references('id')->on('lti_tool_type'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('lti_tool_settings', function (Blueprint $table) { + $table->dropColumn(['lti_tool_type_id']); + }); + } +}; diff --git a/database/migrations/2023_03_02_095822_add_lti_tool_type_column_record_to_lti_tool_settings_table.php b/database/migrations/2023_03_02_095822_add_lti_tool_type_column_record_to_lti_tool_settings_table.php new file mode 100644 index 000000000..4b0149d98 --- /dev/null +++ b/database/migrations/2023_03_02_095822_add_lti_tool_type_column_record_to_lti_tool_settings_table.php @@ -0,0 +1,30 @@ + AddLTIToolTypeColumnRecordToLtiToolSettingsTableSeeder::class, + '--force' => true + ]); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + // + } +}; diff --git a/database/seeders/AddLTIToolTypeColumnRecordToLtiToolSettingsTableSeeder.php b/database/seeders/AddLTIToolTypeColumnRecordToLtiToolSettingsTableSeeder.php new file mode 100644 index 000000000..84971a30e --- /dev/null +++ b/database/seeders/AddLTIToolTypeColumnRecordToLtiToolSettingsTableSeeder.php @@ -0,0 +1,31 @@ +where('name', 'Kaltura')->first(); + $ltiToolTypeId = ( empty($getLTIToolTypeRow) ) ? 1 : $getLTIToolTypeRow->id; + // Get media source id from media_sources table + $conditionAttr = ['name' => 'Kaltura', 'media_type' => 'Video']; + $getMediaRow = DB::table('media_sources')->where($conditionAttr)->first(); + $mediaId = ( empty($getMediaRow) ) ? 3 : $getMediaRow->id; + + DB::table('lti_tool_settings') + ->where('media_source_id', $mediaId) + ->update(['lti_tool_type_id' => $ltiToolTypeId]); + + } +} diff --git a/database/seeders/AddToolTypeOptionToLtiToolTypeTableSeeder.php b/database/seeders/AddToolTypeOptionToLtiToolTypeTableSeeder.php new file mode 100644 index 000000000..d4e4d921e --- /dev/null +++ b/database/seeders/AddToolTypeOptionToLtiToolTypeTableSeeder.php @@ -0,0 +1,23 @@ +insertOrIgnore([ + 'name' => 'Kaltura', + 'created_at' => now() + ]); + } +} diff --git a/routes/api.php b/routes/api.php index 28338c1b8..c76d4c9ac 100644 --- a/routes/api.php +++ b/routes/api.php @@ -254,7 +254,7 @@ Route::get('users/report/basic', 'UserController@reportBasic')->name('users.report.basic'); // lti-tool-settings Route::apiResource('suborganizations/{suborganization}/lti-tool-settings', 'LtiTool\LtiToolSettingsController'); - Route::get('suborganizations/{suborganization}/lti-tool-type', 'LtiTool\LtiToolSettingsController@getLTIToolTypeList'); + Route::get('lti-tool-type', 'LtiTool\LtiToolSettingsController@getLTIToolTypeList'); // brightcove-api-settings Route::apiResource('suborganizations/{suborganization}/brightcove-api-settings', 'Integration\BrightcoveAPISettingsController'); diff --git a/storage/responses/admin/lti-tool/lti-tool-settings-create.json b/storage/responses/admin/lti-tool/lti-tool-settings-create.json index 6787511eb..f8a768c4a 100644 --- a/storage/responses/admin/lti-tool/lti-tool-settings-create.json +++ b/storage/responses/admin/lti-tool/lti-tool-settings-create.json @@ -3,18 +3,18 @@ "data": { "user_id": "23", "organization_id": "1", - "tool_name": "Vimeo Sampled", - "tool_url": "https://vimeod.com", + "tool_name": "Kaltura Sampled", + "tool_url": "https://vimedod.com", "lti_version": "LTI-1p0", - "media_source_id": "6", - "tool_description": "Testing Vimeo API", - "tool_consumer_key": "fe62bf490718e403ab6b0e2926a2ce4ffbb11a16d", - "tool_secret_key": "8484fae8d7c0903f8deeda1f5bcbc0dad", - "tool_domain": "vimeod.com", - "tool_content_selection_url": "https://vimeod.com", - "updated_at": "2022-11-18T11:48:16.000000Z", - "created_at": "2022-11-18T11:48:16.000000Z", - "id": 37, + "tool_description": "Testing Kaltura API", + "tool_consumer_key": "fe62bf490718e403ab6b0e2926a2ce4ffbb11a16dd", + "tool_secret_key": "8484fae8d7c0903f8deeda1f5bcbc0dadd", + "lti_tool_type_id": "1", + "tool_domain": "vimedod.com", + "tool_content_selection_url": "https://vimedod.com", + "updated_at": "2023-03-03T10:04:15.000000Z", + "created_at": "2023-03-03T10:04:15.000000Z", + "id": 43, "user": { "id": 23, "name": "asim", @@ -75,13 +75,17 @@ "msteam_secret_id_expiry": null, "msteam_project_visibility": true, "msteam_playlist_visibility": false, - "msteam_activity_visibility": false + "msteam_activity_visibility": false, + "auto_approve": false, + "activity_title_text": "Title", + "activity_title_placeholder": "Give your layout a name...", + "h5p_reuse_option": true, + "h5p_embed_option": true }, - "media_sources": { - "id": 6, - "name": "Vimeo", - "media_type": "Video", - "created_at": "2022-05-09T08:18:12.000000Z", + "lti_tool_type": { + "id": 1, + "name": "Kaltura", + "created_at": "2023-02-27T12:27:51.000000Z", "updated_at": null, "deleted_at": null } diff --git a/storage/responses/admin/lti-tool/lti-tool-settings-list.json.json b/storage/responses/admin/lti-tool/lti-tool-settings-list.json.json index 535e7b4fb..e2f45978a 100644 --- a/storage/responses/admin/lti-tool/lti-tool-settings-list.json.json +++ b/storage/responses/admin/lti-tool/lti-tool-settings-list.json.json @@ -1,392 +1,482 @@ { "data": [ { - "id": 501, - "user_id": 2, + "id": 42, + "user_id": 23, "organization_id": 1, - "tool_name": "dfdf", - "tool_url": "http://localhost:3000/org/currikistudio", - "tool_domain": "localhost", + "tool_name": "Vimeo Sampled", + "tool_url": "https://vimeod.com", + "tool_domain": "vimeod.com", "lti_version": "LTI-1p0", - "tool_consumer_key": "1231231", - "tool_secret_key": "fdf", - "tool_description": "fthfhmgcfjg", - "tool_custom_parameter": "fdf", - "tool_content_selection_url": "http://localhost:3000/org/currikistudio", + "tool_consumer_key": "fe62bf490718e403ab6b0e2926a2ce4ffbb11a16d", + "tool_secret_key": "8484fae8d7c0903f8deeda1f5bcbc0dad", + "tool_description": "Testing Vimeo API", + "tool_custom_parameter": null, + "tool_content_selection_url": "https://vimeod.com", "tool_client_id": null, "tool_proxy_id": null, "tool_enabled_capability": null, "tool_icon": null, "tool_secure_icon": null, - "created_at": "2022-11-17T12:38:58.000000Z", - "updated_at": "2022-11-17T12:39:12.000000Z", + "created_at": "2023-03-03T09:57:18.000000Z", + "updated_at": "2023-03-03T09:57:18.000000Z", "deleted_at": null, - "media_source_id": 3, + "media_source_id": 6, + "lti_tool_type_id": 1, "user": { - "id": 2, - "name": "Master Demo", - "email": "masterdemo@curriki.org", - "email_verified_at": "2020-09-11T23:52:40.000000Z", - "created_at": "2020-04-06T20:47:21.000000Z", - "updated_at": "2022-11-11T14:35:34.000000Z", - "first_name": "Master", - "last_name": "Demo", + "id": 23, + "name": "asim", + "email": "asim@curriki.org", + "email_verified_at": "2021-09-09T12:22:36.000000Z", + "created_at": "2021-09-09T12:22:37.000000Z", + "updated_at": "2021-09-09T12:23:12.000000Z", + "first_name": "Asim", + "last_name": "Sarwar", "organization_name": "Curriki", "job_title": "Admin", "address": null, - "phone_number": "03315035877", - "organization_type": "Government/EDU", + "phone_number": null, + "organization_type": "Other", "website": null, "deleted_at": null, - "role": "admin", - "gapi_access_token": "{\"token_type\":\"Bearer\",\"access_token\":\"ya29.a0Aa4xrXMz2nYYGvLe_LxdoFmE_E-DUSZV3uSyfd77xG48VxtoyGNBVOnCJY1_QlvYuc4Gxhea__tRI3CkSafXJPTa34QipZB0-FMUx6U0GaJBKdhnp80pTcqQCAsZHVFGy0qX3UouPNB-INpEMP9NoBPUXxv0XZ0aCgYKATASARASFQEjDvL9NYRYA2v8-QPyUvyqXY7Ebg0166\",\"scope\":\"email profile https://www.googleapis.com/auth/classroom.courses.readonly https://www.googleapis.com/auth/classroom.courses https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/classroom.topics https://www.googleapis.com/auth/classroom.coursework.students https://www.googleapis.com/auth/classroom.coursework.me openid https://www.googleapis.com/auth/userinfo.profile\",\"login_hint\":\"AJDLj6IhjPEjK-HinFn0-xSdbBgjitIliFKMmP0IT37J-BCTcJsZrGyvb0O_n_EitspbaxdcIaoi4y9ViqLw4B6YYlYfUWLYX4riG6vSk5EdAtrGb5QSa6w\",\"expires_in\":3599,\"id_token\":\"eyJhbGciOiJSUzI1NiIsImtpZCI6ImVlMWI5Zjg4Y2ZlMzE1MWRkZDI4NGE2MWJmOGNlY2Y2NTliMTMwY2YiLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwiYXpwIjoiODk4MTQzOTM5ODM0LTlpb3VpMmk5Z2hncm1jZ21ndGcwaDZyc2Y4M2QwdDBjLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiYXVkIjoiODk4MTQzOTM5ODM0LTlpb3VpMmk5Z2hncm1jZ21ndGcwaDZyc2Y4M2QwdDBjLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwic3ViIjoiMTAxNDcyOTI4Mzc5NDcwMTY1MTgzIiwiaGQiOiJjdXJyaWtpLm9yZyIsImVtYWlsIjoiYXFpYkBjdXJyaWtpLm9yZyIsImVtYWlsX3ZlcmlmaWVkIjp0cnVlLCJhdF9oYXNoIjoiNWUtUDdteUt2WVVvaDdkQ0h0cTZldyIsIm5hbWUiOiJBcWliIE5hd2F6IiwicGljdHVyZSI6Imh0dHBzOi8vbGgzLmdvb2dsZXVzZXJjb250ZW50LmNvbS9hL0FMbTV3dTFEZXgwc0oxNFE1a2Q2V0xMZjZidG9mRlJqcjlXSjB2UEtXT0dJPXM5Ni1jIiwiZ2l2ZW5fbmFtZSI6IkFxaWIiLCJmYW1pbHlfbmFtZSI6Ik5hd2F6IiwibG9jYWxlIjoiZW4iLCJpYXQiOjE2NjY2OTAzMDUsImV4cCI6MTY2NjY5MzkwNSwianRpIjoiNmFmYTU0NzFhMDJlZmVhMTM5ZjBjY2RjODRjMjM3YTRhODVhNzcwNyJ9.eS9r6W1RH7TTGlCPBDUAe3T24SjeRrOY-o57CIKKYoHe1ZvpSqsv0IhWRCgqEUnKGM5asqnN4KalTPNh_sE4kGxGq_M76OA489kBGCTjImXlYMXG8M45WSkSqQXOeaASjgWju9AOmliUe82dLtA6qb6Q1g4Zw3slkLKEY9_YwnSwQDbZ1qCacYXEEFpdn6Hfg7LVvHKcNwespVrdyq3HbyULDFtLbl4WLBAx1cQZ7bHupnNDvDdY6adQPWQCNY4PcM2magS3eSxd7ZRByELLymMDcHs3-9jdo_aaOvNEviOhVTERylJR2r8KXRrYAmBOShdDjhxdmN69UzbOa35Zeg\",\"session_state\":{\"extraQueryParams\":{\"authuser\":\"0\"}},\"first_issued_at\":1666690305271,\"expires_at\":1666693904271,\"idpId\":\"google\"}", - "hubspot": true, + "role": null, + "hubspot": false, "subscribed": true, - "subscribed_ip": "192.168.96.10", + "subscribed_ip": "127.0.0.1", + "gapi_access_token": null, "membership_type_id": 2, - "temp_password": null, - "msteam_access_token": "eyJ0eXAiOiJKV1QiLCJub25jZSI6Ikh6ZG5qQmswZm9aZFJFZnM5WGNoM0xlWWRBOXRvYUNmZjZENWdBYXNGLWMiLCJhbGciOiJSUzI1NiIsIng1dCI6IjJaUXBKM1VwYmpBWVhZR2FYRUpsOGxWMFRPSSIsImtpZCI6IjJaUXBKM1VwYmpBWVhZR2FYRUpsOGxWMFRPSSJ9.eyJhdWQiOiIwMDAwMDAwMy0wMDAwLTAwMDAtYzAwMC0wMDAwMDAwMDAwMDAiLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC83NWY4ODFmZi1jODNiLTQ0ZGUtYTk2NC1mMGY5ZWU2NGM2MGMvIiwiaWF0IjoxNjY4MTc4NzAwLCJuYmYiOj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3RJs2-AH8Sigx0pywZYnzUBEp0nT2rdCLn0oFP-Pmnu-93N_szdNCFWnfBh41ksMnj8WuRlWYLtDifXZg04N5qmyWcS0IxCAQSzyQIIGDXrRoA2_0-vZGegFyt_B0l0C_-_3bJLPG-BBYYGGmb7RWIIqZeO19m6J90589aq04u4qRJ22KDU2bjCDtHeXsXASn9NiyQ-ZB5yY6Tl2T4rRI19uwQMA" + "msteam_access_token": null }, "organization": { "id": 1, - "name": "CurrikiStudio", - "description": "This is our default Organization for Studio.", + "name": "Curriki Studio", + "description": "Curriki Studio, default organization.", "domain": "currikistudio", "parent_id": null, - "image": "https://dev.currikistudio.org/api/storage/organizations/H01h34rZGV6gyMayurX8dwpkXZd4X3c0n8NJiUXu.png", + "image": null, "created_at": null, - "updated_at": "2022-11-07T11:29:14.000000Z", + "updated_at": null, "deleted_at": null, "self_registration": true, - "account_id": "AC5771e791affd4176966bf63c846c8701", - "api_key": "TO2BF2E47CCCDD4A04944984A4E8275193", - "unit_path": "demo", - "noovo_client_id": "Noovo_Demo", + "account_id": null, + "api_key": null, + "unit_path": null, + "noovo_client_id": null, "gcr_project_visibility": true, - "gcr_playlist_visibility": true, - "gcr_activity_visibility": true, - "tos_type": "URL", - "tos_url": "https://www.curriki.org/terms-of-service/", + "gcr_playlist_visibility": false, + "gcr_activity_visibility": false, + "tos_type": null, + "tos_url": null, "tos_content": null, - "privacy_policy_type": "URL", - "privacy_policy_url": "https://www.curriki.org/privacy-policy/", + "privacy_policy_type": null, + "privacy_policy_url": null, "privacy_policy_content": null, - "primary_color": "#084892", - "secondary_color": "#F8AF2C", - "tertiary_color": "#515151", - "primary_font_family": "rubic", - "secondary_font_family": "Open Sans, sans-serif", - "favicon": "https://dev.currikistudio.org/api/storage/organizations/QqwMYyeWq7WxQHzy7LDdI0mRBBA3g2qnLm2wd4Ib.svg", - "msteam_client_id": "5e0ea881-693a-4f0a-94a7-dcef7b5accd6", + "primary_color": null, + "secondary_color": null, + "tertiary_color": null, + "primary_font_family": null, + "secondary_font_family": null, + "favicon": null, + "msteam_client_id": null, "msteam_secret_id": null, - "msteam_tenant_id": "75f881ff-c83b-44de-a964-f0f9ee64c60c", - "msteam_secret_id_expiry": "2022-09-29", + "msteam_tenant_id": null, + "msteam_secret_id_expiry": null, "msteam_project_visibility": true, - "msteam_playlist_visibility": true, - "msteam_activity_visibility": true + "msteam_playlist_visibility": false, + "msteam_activity_visibility": false, + "auto_approve": false, + "activity_title_text": "Title", + "activity_title_placeholder": "Give your layout a name...", + "h5p_reuse_option": true, + "h5p_embed_option": true }, - "media_sources": { - "id": 3, + "lti_tool_type": { + "id": 1, "name": "Kaltura", - "media_type": "Video", - "created_at": "2022-05-06T11:44:46.000000Z", + "created_at": "2023-02-27T12:27:51.000000Z", "updated_at": null, "deleted_at": null } }, { - "id": 500, - "user_id": 2, + "id": 36, + "user_id": 23, "organization_id": 1, - "tool_name": "er4etrgdf", - "tool_url": "http://localhost:3000/org/currikistudio/admin", - "tool_domain": "localhost", + "tool_name": "Kaltura Integration", + "tool_url": "https://4515783.kaf.kaltura.com", + "tool_domain": "4515783.kaf.kaltura.com", "lti_version": "LTI-1p0", - "tool_consumer_key": "fdfd", - "tool_secret_key": "4343", - "tool_description": "fdf", - "tool_custom_parameter": "fdfd", - "tool_content_selection_url": "http://localhost:3000/org/currikistudio/admin", + "tool_consumer_key": "4515783", + "tool_secret_key": "8ec6316c7792a1ce754814ccbb19e505", + "tool_description": "Testing Vimeo API", + "tool_custom_parameter": null, + "tool_content_selection_url": "https://vimeod.com", "tool_client_id": null, "tool_proxy_id": null, "tool_enabled_capability": null, "tool_icon": null, "tool_secure_icon": null, - "created_at": "2022-11-16T13:46:02.000000Z", - "updated_at": "2022-11-17T12:39:49.000000Z", + "created_at": "2022-11-11T10:26:45.000000Z", + "updated_at": "2022-11-11T10:29:39.000000Z", "deleted_at": null, - "media_source_id": 10, + "media_source_id": 3, + "lti_tool_type_id": null, "user": { - "id": 2, - "name": "Master Demo", - "email": "masterdemo@curriki.org", - "email_verified_at": "2020-09-11T23:52:40.000000Z", - "created_at": "2020-04-06T20:47:21.000000Z", - "updated_at": "2022-11-11T14:35:34.000000Z", - "first_name": "Master", - "last_name": "Demo", + "id": 23, + "name": "asim", + "email": "asim@curriki.org", + "email_verified_at": "2021-09-09T12:22:36.000000Z", + "created_at": "2021-09-09T12:22:37.000000Z", + "updated_at": "2021-09-09T12:23:12.000000Z", + "first_name": "Asim", + "last_name": "Sarwar", "organization_name": "Curriki", "job_title": "Admin", "address": null, - "phone_number": "03315035877", - "organization_type": "Government/EDU", + "phone_number": null, + "organization_type": "Other", "website": null, "deleted_at": null, - "role": "admin", - "gapi_access_token": "{\"token_type\":\"Bearer\",\"access_token\":\"ya29.a0Aa4xrXMz2nYYGvLe_LxdoFmE_E-DUSZV3uSyfd77xG48VxtoyGNBVOnCJY1_QlvYuc4Gxhea__tRI3CkSafXJPTa34QipZB0-FMUx6U0GaJBKdhnp80pTcqQCAsZHVFGy0qX3UouPNB-INpEMP9NoBPUXxv0XZ0aCgYKATASARASFQEjDvL9NYRYA2v8-QPyUvyqXY7Ebg0166\",\"scope\":\"email profile https://www.googleapis.com/auth/classroom.courses.readonly https://www.googleapis.com/auth/classroom.courses https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/classroom.topics https://www.googleapis.com/auth/classroom.coursework.students https://www.googleapis.com/auth/classroom.coursework.me openid https://www.googleapis.com/auth/userinfo.profile\",\"login_hint\":\"AJDLj6IhjPEjK-HinFn0-xSdbBgjitIliFKMmP0IT37J-BCTcJsZrGyvb0O_n_EitspbaxdcIaoi4y9ViqLw4B6YYlYfUWLYX4riG6vSk5EdAtrGb5QSa6w\",\"expires_in\":3599,\"id_token\":\"eyJhbGciOiJSUzI1NiIsImtpZCI6ImVlMWI5Zjg4Y2ZlMzE1MWRkZDI4NGE2MWJmOGNlY2Y2NTliMTMwY2YiLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29t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RrYAmBOShdDjhxdmN69UzbOa35Zeg\",\"session_state\":{\"extraQueryParams\":{\"authuser\":\"0\"}},\"first_issued_at\":1666690305271,\"expires_at\":1666693904271,\"idpId\":\"google\"}", - "hubspot": true, + "role": null, + "hubspot": false, "subscribed": true, - "subscribed_ip": "192.168.96.10", + "subscribed_ip": "127.0.0.1", + "gapi_access_token": null, "membership_type_id": 2, - "temp_password": null, - "msteam_access_token": "eyJ0eXAiOiJKV1QiLCJub25jZSI6Ikh6ZG5qQmswZm9aZFJFZnM5WGNoM0xlWWRBOXRvYUNmZjZENWdBYXNGLWMiLCJhbGciOiJSUzI1NiIsIng1dCI6IjJaUXBKM1VwYmpBWVhZR2FYRUpsOGxWMFRPSSIsImtpZCI6IjJaUXBKM1VwYmpBWVhZR2FYRUpsOGxWMFRPSSJ9.eyJhdWQiOiIwMDAwMDAwMy0wMDAwLTAwMDAtYzAwMC0wMDAwMDAwMDAwMDAiLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC83NWY4ODFmZi1jODNiLTQ0ZGUtYTk2NC1mMGY5ZWU2NGM2MGMvIiwiaWF0IjoxNjY4MTc4NzAwLCJuYmYiOjE2NjgxNzg3MDAsImV4cCI6MTY2ODE4MzA4MiwiYWNjdCI6MCwiYWNyIjoiMSIsImFpbyI6IkFUUUF5LzhUQUFBQWhHa0E3SlNWMDRHM3pBTmhtbk4xZDFBblpoMnhkbGxicC9YZ0JIOC95Q0tXRm1pL05PWXlaMEtsbHBtWHkyV3UiLCJhbXIiOlsicHdkIl0sImFwcF9kaXNwbGF5bmFtZSI6IkN1cnJpa2lTdHVkaW9QdWJsaXNoaXNuZ0RldiIsImFwcGlkIjoiNWUwZWE4ODEtNjkzYS00ZjBhLTk0YTctZGNlZjdiNWFjY2Q2IiwiYXBwaWRhY3IiOiIwIiwiZmFtaWx5X25hbWUiOiJ5b3VuIiwiZ2l2ZW5fbmFtZSI6IkFxaWIiLCJpZHR5cCI6InVzZXIiLCJpcGFkZHI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iTkEiLCJ0aWQiOiI3NWY4ODFmZi1jODNiLTQ0ZGUtYTk2NC1mMGY5ZWU2NGM2MGMiLCJ1bmlxdWVfbmFtZSI6InlvdW5hcy5hcWliQGN1cnJpa2kub3JnIiwidXBuIjoieW91bmFzLmFxaWJAY3VycmlraS5vcmciLCJ1dGkiOiJ3TE1Td3JQMTkwcWY5VkRiZDI3Y0FRIiwidmVyIjoiMS4wIiwid2lkcyI6WyI2MmU5MDM5NC02OWY1LTQyMzctOTE5MC0wMTIxNzcxNDVlMTAiLCI2OTA5MTI0Ni0yMGU4LTRhNTYtYWE0ZC0wNjYwNzViMmE3YTgiLCJiNzlmYmY0ZC0zZWY5LTQ2ODktODE0My03NmIxOTRlODU1MDkiXSwieG1zX3N0Ijp7InN1YiI6Ikw0ZUhZUlJjLWJRb2o3amJKYTBIN3Y1ZzUwTWl1X3NwM0t0LUVxLW5ZRTQifSwieG1zX3RjZHQiOjE1OTE4OTc4ODR9.VaAWArPzkAOTm_mg59ZRWruEfwDQog8DG9tnCY2YRplNrC3cmwYWmqH02mcpWadBipn8PQEj9gR6JzwqI_WW0muu4aT3lhiE1S9246TSwfeluPieKGHpFJTtrc3RJs2-AH8Sigx0pywZYnzUBEp0nT2rdCLn0oFP-Pmnu-93N_szdNCFWnfBh41ksMnj8WuRlWYLtDifXZg04N5qmyWcS0IxCAQSzyQIIGDXrRoA2_0-vZGegFyt_B0l0C_-_3bJLPG-BBYYGGmb7RWIIqZeO19m6J90589aq04u4qRJ22KDU2bjCDtHeXsXASn9NiyQ-ZB5yY6Tl2T4rRI19uwQMA" + "msteam_access_token": null }, "organization": { "id": 1, - "name": "CurrikiStudio", - "description": "This is our default Organization for Studio.", + "name": "Curriki Studio", + "description": "Curriki Studio, default organization.", "domain": "currikistudio", "parent_id": null, - "image": "https://dev.currikistudio.org/api/storage/organizations/H01h34rZGV6gyMayurX8dwpkXZd4X3c0n8NJiUXu.png", + "image": null, "created_at": null, - "updated_at": "2022-11-07T11:29:14.000000Z", + "updated_at": null, "deleted_at": null, "self_registration": true, - "account_id": "AC5771e791affd4176966bf63c846c8701", - "api_key": "TO2BF2E47CCCDD4A04944984A4E8275193", - "unit_path": "demo", - "noovo_client_id": "Noovo_Demo", + "account_id": null, + "api_key": null, + "unit_path": null, + "noovo_client_id": null, "gcr_project_visibility": true, - "gcr_playlist_visibility": true, - "gcr_activity_visibility": true, - "tos_type": "URL", - "tos_url": "https://www.curriki.org/terms-of-service/", + "gcr_playlist_visibility": false, + "gcr_activity_visibility": false, + "tos_type": null, + "tos_url": null, "tos_content": null, - "privacy_policy_type": "URL", - "privacy_policy_url": "https://www.curriki.org/privacy-policy/", + "privacy_policy_type": null, + "privacy_policy_url": null, "privacy_policy_content": null, - "primary_color": "#084892", - "secondary_color": "#F8AF2C", - "tertiary_color": "#515151", - "primary_font_family": "rubic", - "secondary_font_family": "Open Sans, sans-serif", - "favicon": "https://dev.currikistudio.org/api/storage/organizations/QqwMYyeWq7WxQHzy7LDdI0mRBBA3g2qnLm2wd4Ib.svg", - "msteam_client_id": "5e0ea881-693a-4f0a-94a7-dcef7b5accd6", + "primary_color": null, + "secondary_color": null, + "tertiary_color": null, + "primary_font_family": null, + "secondary_font_family": null, + "favicon": null, + "msteam_client_id": null, "msteam_secret_id": null, - "msteam_tenant_id": "75f881ff-c83b-44de-a964-f0f9ee64c60c", - "msteam_secret_id_expiry": "2022-09-29", + "msteam_tenant_id": null, + "msteam_secret_id_expiry": null, "msteam_project_visibility": true, - "msteam_playlist_visibility": true, - "msteam_activity_visibility": true + "msteam_playlist_visibility": false, + "msteam_activity_visibility": false, + "auto_approve": false, + "activity_title_text": "Title", + "activity_title_placeholder": "Give your layout a name...", + "h5p_reuse_option": true, + "h5p_embed_option": true }, - "media_sources": { - "id": 10, - "name": "Komodo", - "media_type": "Video", - "created_at": "2022-08-01T10:06:56.000000Z", - "updated_at": null, - "deleted_at": null - } + "lti_tool_type": null }, { - "id": 499, - "user_id": 2, + "id": 34, + "user_id": 23, "organization_id": 1, - "tool_name": "Komodo API", - "tool_url": "https://komododecks.com", - "tool_domain": "komododecks.com", + "tool_name": "Komodo API Integration", + "tool_url": "https://api.komododecks.com", + "tool_domain": "api.komododecks.com", "lti_version": "LTI-1p0", "tool_consumer_key": "masterdemo@curriki.org", "tool_secret_key": "d527cf59cd2242aab04498a44aac9843013d7a12", - "tool_description": "Testing Komodo API", + "tool_description": "Testing Komodo APIs", "tool_custom_parameter": null, - "tool_content_selection_url": "https://komododecks.com", + "tool_content_selection_url": "https://api.komododecks.com", "tool_client_id": null, "tool_proxy_id": null, "tool_enabled_capability": null, "tool_icon": null, "tool_secure_icon": null, - "created_at": "2022-11-15T18:19:01.000000Z", - "updated_at": "2022-11-15T18:19:01.000000Z", + "created_at": null, + "updated_at": null, "deleted_at": null, - "media_source_id": 10, + "media_source_id": 13, + "lti_tool_type_id": null, "user": { - "id": 2, - "name": "Master Demo", - "email": "masterdemo@curriki.org", - "email_verified_at": "2020-09-11T23:52:40.000000Z", - "created_at": "2020-04-06T20:47:21.000000Z", - "updated_at": "2022-11-11T14:35:34.000000Z", - "first_name": "Master", - "last_name": "Demo", + "id": 23, + "name": "asim", + "email": "asim@curriki.org", + "email_verified_at": "2021-09-09T12:22:36.000000Z", + "created_at": "2021-09-09T12:22:37.000000Z", + "updated_at": "2021-09-09T12:23:12.000000Z", + "first_name": "Asim", + "last_name": "Sarwar", "organization_name": "Curriki", "job_title": "Admin", "address": null, - "phone_number": "03315035877", - "organization_type": "Government/EDU", + "phone_number": null, + "organization_type": "Other", "website": null, "deleted_at": null, - "role": "admin", - "gapi_access_token": "{\"token_type\":\"Bearer\",\"access_token\":\"ya29.a0Aa4xrXMz2nYYGvLe_LxdoFmE_E-DUSZV3uSyfd77xG48VxtoyGNBVOnCJY1_QlvYuc4Gxhea__tRI3CkSafXJPTa34QipZB0-FMUx6U0GaJBKdhnp80pTcqQCAsZHVFGy0qX3UouPNB-INpEMP9NoBPUXxv0XZ0aCgYKATASARASFQEjDvL9NYRYA2v8-QPyUvyqXY7Ebg0166\",\"scope\":\"email profile https://www.googleapis.com/auth/classroom.courses.readonly https://www.googleapis.com/auth/classroom.courses https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/classroom.topics https://www.googleapis.com/auth/classroom.coursework.students https://www.googleapis.com/auth/classroom.coursework.me openid https://www.googleapis.com/auth/userinfo.profile\",\"login_hint\":\"AJDLj6IhjPEjK-HinFn0-xSdbBgjitIliFKMmP0IT37J-BCTcJsZrGyvb0O_n_EitspbaxdcIaoi4y9ViqLw4B6YYlYfUWLYX4riG6vSk5EdAtrGb5QSa6w\",\"expires_in\":3599,\"id_token\":\"eyJhbGciOiJSUzI1NiIsImtpZCI6ImVlMWI5Zjg4Y2ZlMzE1MWRkZDI4NGE2MWJmOGNlY2Y2NTliMTMwY2YiLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwiYXpwIjoiODk4MTQzOTM5ODM0LTlpb3VpMmk5Z2hncm1jZ21ndGcwaDZyc2Y4M2QwdDBjLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiYXVkIjoiODk4MTQzOTM5ODM0LTlpb3VpMmk5Z2hncm1jZ21ndGcwaDZyc2Y4M2QwdDBjLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwic3ViIjoiMTAxNDcyOTI4Mzc5NDcwMTY1MTgzIiwiaGQiOiJjdXJyaWtpLm9yZyIsImVtYWlsIjoiYXFpYkBjdXJyaWtpLm9yZyIsImVtYWlsX3ZlcmlmaWVkIjp0cnVlLCJhdF9oYXNoIjoiNWUtUDdteUt2WVVvaDdkQ0h0cTZldyIsIm5hbWUiOiJBcWliIE5hd2F6IiwicGljdHVyZSI6Imh0dHBzOi8vbGgzLmdvb2dsZXVzZXJjb250ZW50LmNvbS9hL0FMbTV3dTFEZXgwc0oxNFE1a2Q2V0xMZjZidG9mRlJqcjlXSjB2UEtXT0dJPXM5Ni1jIiwiZ2l2ZW5fbmFtZSI6IkFxaWIiLCJmYW1pbHlfbmFtZSI6Ik5hd2F6IiwibG9jYWxlIjoiZW4iLCJpYXQiOjE2NjY2OTAzMDUsImV4cCI6MTY2NjY5MzkwNSwianRpIjoiNmFmYTU0NzFhMDJlZmVhMTM5ZjBjY2RjODRjMjM3YTRhODVhNzcwNyJ9.eS9r6W1RH7TTGlCPBDUAe3T24SjeRrOY-o57CIKKYoHe1ZvpSqsv0IhWRCgqEUnKGM5asqnN4KalTPNh_sE4kGxGq_M76OA489kBGCTjImXlYMXG8M45WSkSqQXOeaASjgWju9AOmliUe82dLtA6qb6Q1g4Zw3slkLKEY9_YwnSwQDbZ1qCacYXEEFpdn6Hfg7LVvHKcNwespVrdyq3HbyULDFtLbl4WLBAx1cQZ7bHupnNDvDdY6adQPWQCNY4PcM2magS3eSxd7ZRByELLymMDcHs3-9jdo_aaOvNEviOhVTERylJR2r8KXRrYAmBOShdDjhxdmN69UzbOa35Zeg\",\"session_state\":{\"extraQueryParams\":{\"authuser\":\"0\"}},\"first_issued_at\":1666690305271,\"expires_at\":1666693904271,\"idpId\":\"google\"}", - "hubspot": true, + "role": null, + "hubspot": false, "subscribed": true, - "subscribed_ip": "192.168.96.10", + "subscribed_ip": "127.0.0.1", + "gapi_access_token": null, "membership_type_id": 2, - "temp_password": null, - "msteam_access_token": "eyJ0eXAiOiJKV1QiLCJub25jZSI6Ikh6ZG5qQmswZm9aZFJFZnM5WGNoM0xlWWRBOXRvYUNmZjZENWdBYXNGLWMiLCJhbGciOiJSUzI1NiIsIng1dCI6IjJaUXBKM1VwYmpBWVhZR2FYRUpsOGxWMFRPSSIsImtpZCI6IjJaUXBKM1VwYmpBWVhZR2FYRUpsOGxWMFRPSSJ9.eyJhdWQiOiIwMDAwMDAwMy0wMDAwLTAwMDAtYzAwMC0wMDAwMDAwMDAwMDAiLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC83NWY4ODFmZi1jODNiLTQ0ZGUtYT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cpWadBipn8PQEj9gR6JzwqI_WW0muu4aT3lhiE1S9246TSwfeluPieKGHpFJTtrc3RJs2-AH8Sigx0pywZYnzUBEp0nT2rdCLn0oFP-Pmnu-93N_szdNCFWnfBh41ksMnj8WuRlWYLtDifXZg04N5qmyWcS0IxCAQSzyQIIGDXrRoA2_0-vZGegFyt_B0l0C_-_3bJLPG-BBYYGGmb7RWIIqZeO19m6J90589aq04u4qRJ22KDU2bjCDtHeXsXASn9NiyQ-ZB5yY6Tl2T4rRI19uwQMA" + "msteam_access_token": null }, "organization": { "id": 1, - "name": "CurrikiStudio", - "description": "This is our default Organization for Studio.", + "name": "Curriki Studio", + "description": "Curriki Studio, default organization.", "domain": "currikistudio", "parent_id": null, - "image": "https://dev.currikistudio.org/api/storage/organizations/H01h34rZGV6gyMayurX8dwpkXZd4X3c0n8NJiUXu.png", + "image": null, "created_at": null, - "updated_at": "2022-11-07T11:29:14.000000Z", + "updated_at": null, "deleted_at": null, "self_registration": true, - "account_id": "AC5771e791affd4176966bf63c846c8701", - "api_key": "TO2BF2E47CCCDD4A04944984A4E8275193", - "unit_path": "demo", - "noovo_client_id": "Noovo_Demo", + "account_id": null, + "api_key": null, + "unit_path": null, + "noovo_client_id": null, "gcr_project_visibility": true, - "gcr_playlist_visibility": true, - "gcr_activity_visibility": true, - "tos_type": "URL", - "tos_url": "https://www.curriki.org/terms-of-service/", + "gcr_playlist_visibility": false, + "gcr_activity_visibility": false, + "tos_type": null, + "tos_url": null, "tos_content": null, - "privacy_policy_type": "URL", - "privacy_policy_url": "https://www.curriki.org/privacy-policy/", + "privacy_policy_type": null, + "privacy_policy_url": null, "privacy_policy_content": null, - "primary_color": "#084892", - "secondary_color": "#F8AF2C", - "tertiary_color": "#515151", - "primary_font_family": "rubic", - "secondary_font_family": "Open Sans, sans-serif", - "favicon": "https://dev.currikistudio.org/api/storage/organizations/QqwMYyeWq7WxQHzy7LDdI0mRBBA3g2qnLm2wd4Ib.svg", - "msteam_client_id": "5e0ea881-693a-4f0a-94a7-dcef7b5accd6", + "primary_color": null, + "secondary_color": null, + "tertiary_color": null, + "primary_font_family": null, + "secondary_font_family": null, + "favicon": null, + "msteam_client_id": null, "msteam_secret_id": null, - "msteam_tenant_id": "75f881ff-c83b-44de-a964-f0f9ee64c60c", - "msteam_secret_id_expiry": "2022-09-29", + "msteam_tenant_id": null, + "msteam_secret_id_expiry": null, "msteam_project_visibility": true, - "msteam_playlist_visibility": true, - "msteam_activity_visibility": true + "msteam_playlist_visibility": false, + "msteam_activity_visibility": false, + "auto_approve": false, + "activity_title_text": "Title", + "activity_title_placeholder": "Give your layout a name...", + "h5p_reuse_option": true, + "h5p_embed_option": true }, - "media_sources": { - "id": 10, - "name": "Komodo", - "media_type": "Video", - "created_at": "2022-08-01T10:06:56.000000Z", + "lti_tool_type": null + }, + { + "id": 5, + "user_id": 23, + "organization_id": 1, + "tool_name": "Vimeo Sample", + "tool_url": "https://partner.safarimontage.com/SAFARI/api/imsltisearch.php", + "tool_domain": "partner.safarimontage.com", + "lti_version": "LTI-1p0", + "tool_consumer_key": "2b9d3d6f-a46f-11eb-915b-001e67972a31.partner.safarimontage.com", + "tool_secret_key": "4dbe1fa5c24b0cb35bc33097393d70a329c14933", + "tool_description": "Testing safari montage as LTI Tool Consumer", + "tool_custom_parameter": "launch_frame='iframe', iframe='embed'", + "tool_content_selection_url": "https://partner.safarimontage.com/SAFARI/api/imsltisearchdd.php", + "tool_client_id": null, + "tool_proxy_id": null, + "tool_enabled_capability": null, + "tool_icon": null, + "tool_secure_icon": null, + "created_at": "2022-06-28T11:12:25.000000Z", + "updated_at": "2022-06-28T11:15:52.000000Z", + "deleted_at": null, + "media_source_id": 2, + "lti_tool_type_id": null, + "user": { + "id": 23, + "name": "asim", + "email": "asim@curriki.org", + "email_verified_at": "2021-09-09T12:22:36.000000Z", + "created_at": "2021-09-09T12:22:37.000000Z", + "updated_at": "2021-09-09T12:23:12.000000Z", + "first_name": "Asim", + "last_name": "Sarwar", + "organization_name": "Curriki", + "job_title": "Admin", + "address": null, + "phone_number": null, + "organization_type": "Other", + "website": null, + "deleted_at": null, + "role": null, + "hubspot": false, + "subscribed": true, + "subscribed_ip": "127.0.0.1", + "gapi_access_token": null, + "membership_type_id": 2, + "msteam_access_token": null + }, + "organization": { + "id": 1, + "name": "Curriki Studio", + "description": "Curriki Studio, default organization.", + "domain": "currikistudio", + "parent_id": null, + "image": null, + "created_at": null, "updated_at": null, - "deleted_at": null - } + "deleted_at": null, + "self_registration": true, + "account_id": null, + "api_key": null, + "unit_path": null, + "noovo_client_id": null, + "gcr_project_visibility": true, + "gcr_playlist_visibility": false, + "gcr_activity_visibility": false, + "tos_type": null, + "tos_url": null, + "tos_content": null, + "privacy_policy_type": null, + "privacy_policy_url": null, + "privacy_policy_content": null, + "primary_color": null, + "secondary_color": null, + "tertiary_color": null, + "primary_font_family": null, + "secondary_font_family": null, + "favicon": null, + "msteam_client_id": null, + "msteam_secret_id": null, + "msteam_tenant_id": null, + "msteam_secret_id_expiry": null, + "msteam_project_visibility": true, + "msteam_playlist_visibility": false, + "msteam_activity_visibility": false, + "auto_approve": false, + "activity_title_text": "Title", + "activity_title_placeholder": "Give your layout a name...", + "h5p_reuse_option": true, + "h5p_embed_option": true + }, + "lti_tool_type": null }, { - "id": 473, - "user_id": 2, + "id": 4, + "user_id": 23, "organization_id": 1, - "tool_name": "Vimeo API Integrationd", - "tool_url": "https://vimeo.com/", - "tool_domain": "vimeo.com", + "tool_name": "Vimeo Test", + "tool_url": "https://vimeode.com", + "tool_domain": "vimeode.com", "lti_version": "LTI-1p0", - "tool_consumer_key": "faa23f8be8c0140a880ff458599e308d8ea4cbf4", - "tool_secret_key": "ce802041a347d3ed18fba5c7238f4310", - "tool_description": "Vimeo API Integration", + "tool_consumer_key": "fe62bf490718e403ab6b0e2926a2ce4ffbb11a16", + "tool_secret_key": "8484fae8d7c0903f8deeda1f5bcbc0da", + "tool_description": "Testing Vimeo API", "tool_custom_parameter": null, - "tool_content_selection_url": "https://vimeo.com/", + "tool_content_selection_url": "https://vimeod.com", "tool_client_id": null, "tool_proxy_id": null, "tool_enabled_capability": null, "tool_icon": null, "tool_secure_icon": null, - "created_at": "2022-10-11T08:53:20.000000Z", - "updated_at": "2022-11-17T12:40:15.000000Z", + "created_at": "2022-03-25T09:28:53.000000Z", + "updated_at": "2022-11-28T13:10:06.000000Z", "deleted_at": null, - "media_source_id": 3, + "media_source_id": 6, + "lti_tool_type_id": null, "user": { - "id": 2, - "name": "Master Demo", - "email": "masterdemo@curriki.org", - "email_verified_at": "2020-09-11T23:52:40.000000Z", - "created_at": "2020-04-06T20:47:21.000000Z", - "updated_at": "2022-11-11T14:35:34.000000Z", - "first_name": "Master", - "last_name": "Demo", + "id": 23, + "name": "asim", + "email": "asim@curriki.org", + "email_verified_at": "2021-09-09T12:22:36.000000Z", + "created_at": "2021-09-09T12:22:37.000000Z", + "updated_at": "2021-09-09T12:23:12.000000Z", + "first_name": "Asim", + "last_name": "Sarwar", "organization_name": "Curriki", "job_title": "Admin", "address": null, - "phone_number": "03315035877", - "organization_type": "Government/EDU", + "phone_number": null, + "organization_type": "Other", "website": null, "deleted_at": null, - "role": "admin", - "gapi_access_token": "{\"token_type\":\"Bearer\",\"access_token\":\"ya29.a0Aa4xrXMz2nYYGvLe_LxdoFmE_E-DUSZV3uSyfd77xG48VxtoyGNBVOnCJY1_QlvYuc4Gxhea__tRI3CkSafXJPTa34QipZB0-FMUx6U0GaJBKdhnp80pTcqQCAsZHVFGy0qX3UouPNB-INpEMP9NoBPUXxv0XZ0aCgYKATASARASFQEjDvL9NYRYA2v8-QPyUvyqXY7Ebg0166\",\"scope\":\"email profile https://www.googleapis.com/auth/classroom.courses.readonly https://www.googleapis.com/auth/classroom.courses https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/classroom.topics https://www.googleapis.com/auth/classroom.coursework.students https://www.googleapis.com/auth/classroom.coursework.me openid https://www.googleapis.com/auth/userinfo.profile\",\"login_hint\":\"AJDL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SjeRrOY-o57CIKKYoHe1ZvpSqsv0IhWRCgqEUnKGM5asqnN4KalTPNh_sE4kGxGq_M76OA489kBGCTjImXlYMXG8M45WSkSqQXOeaASjgWju9AOmliUe82dLtA6qb6Q1g4Zw3slkLKEY9_YwnSwQDbZ1qCacYXEEFpdn6Hfg7LVvHKcNwespVrdyq3HbyULDFtLbl4WLBAx1cQZ7bHupnNDvDdY6adQPWQCNY4PcM2magS3eSxd7ZRByELLymMDcHs3-9jdo_aaOvNEviOhVTERylJR2r8KXRrYAmBOShdDjhxdmN69UzbOa35Zeg\",\"session_state\":{\"extraQueryParams\":{\"authuser\":\"0\"}},\"first_issued_at\":1666690305271,\"expires_at\":1666693904271,\"idpId\":\"google\"}", - "hubspot": true, + "role": null, + "hubspot": false, "subscribed": true, - "subscribed_ip": "192.168.96.10", + "subscribed_ip": "127.0.0.1", + "gapi_access_token": null, "membership_type_id": 2, - "temp_password": null, - "msteam_access_token": "eyJ0eXAiOiJKV1QiLCJub25jZSI6Ikh6ZG5qQmswZm9aZFJFZnM5WGNoM0xlWWRBOXRvYUNmZjZENWdBYXNGLWMiLCJhbGciOiJSUzI1NiIsIng1dCI6IjJaUXBKM1VwYmpBWVhZR2FYRUpsOGxWMFRPSSIsImtpZCI6IjJaUXBKM1VwYmpBWVhZR2FYRUpsOGxWMFRPSSJ9.eyJhdWQiOiIwMDAwMDAwMy0wMDAwLTAwMDAtYzAwMC0wMDAwMDAwMDAwMDAiLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC83NWY4ODFmZi1jODNiLTQ0ZGUtYTk2NC1mMGY5ZWU2NGM2MGMvIiwiaWF0IjoxNjY4MTc4NzAwLCJuYmYiOjE2NjgxNzg3MDAsImV4cCI6MTY2ODE4MzA4MiwiYWNjdCI6MCwiYWNyIjoiMSIsImFpbyI6IkFUUUF5LzhUQUFBQWhHa0E3SlNWMDRHM3pBTmhtbk4xZDFBblpoMnhkbGxicC9YZ0JIOC95Q0tXRm1pL05PW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6J90589aq04u4qRJ22KDU2bjCDtHeXsXASn9NiyQ-ZB5yY6Tl2T4rRI19uwQMA" + "msteam_access_token": null }, "organization": { "id": 1, - "name": "CurrikiStudio", - "description": "This is our default Organization for Studio.", + "name": "Curriki Studio", + "description": "Curriki Studio, default organization.", "domain": "currikistudio", "parent_id": null, - "image": "https://dev.currikistudio.org/api/storage/organizations/H01h34rZGV6gyMayurX8dwpkXZd4X3c0n8NJiUXu.png", + "image": null, "created_at": null, - "updated_at": "2022-11-07T11:29:14.000000Z", + "updated_at": null, "deleted_at": null, "self_registration": true, - "account_id": "AC5771e791affd4176966bf63c846c8701", - "api_key": "TO2BF2E47CCCDD4A04944984A4E8275193", - "unit_path": "demo", - "noovo_client_id": "Noovo_Demo", + "account_id": null, + "api_key": null, + "unit_path": null, + "noovo_client_id": null, "gcr_project_visibility": true, - "gcr_playlist_visibility": true, - "gcr_activity_visibility": true, - "tos_type": "URL", - "tos_url": "https://www.curriki.org/terms-of-service/", + "gcr_playlist_visibility": false, + "gcr_activity_visibility": false, + "tos_type": null, + "tos_url": null, "tos_content": null, - "privacy_policy_type": "URL", - "privacy_policy_url": "https://www.curriki.org/privacy-policy/", + "privacy_policy_type": null, + "privacy_policy_url": null, "privacy_policy_content": null, - "primary_color": "#084892", - "secondary_color": "#F8AF2C", - "tertiary_color": "#515151", - "primary_font_family": "rubic", - "secondary_font_family": "Open Sans, sans-serif", - "favicon": "https://dev.currikistudio.org/api/storage/organizations/QqwMYyeWq7WxQHzy7LDdI0mRBBA3g2qnLm2wd4Ib.svg", - "msteam_client_id": "5e0ea881-693a-4f0a-94a7-dcef7b5accd6", + "primary_color": null, + "secondary_color": null, + "tertiary_color": null, + "primary_font_family": null, + "secondary_font_family": null, + "favicon": null, + "msteam_client_id": null, "msteam_secret_id": null, - "msteam_tenant_id": "75f881ff-c83b-44de-a964-f0f9ee64c60c", - "msteam_secret_id_expiry": "2022-09-29", + "msteam_tenant_id": null, + "msteam_secret_id_expiry": null, "msteam_project_visibility": true, - "msteam_playlist_visibility": true, - "msteam_activity_visibility": true + "msteam_playlist_visibility": false, + "msteam_activity_visibility": false, + "auto_approve": false, + "activity_title_text": "Title", + "activity_title_placeholder": "Give your layout a name...", + "h5p_reuse_option": true, + "h5p_embed_option": true }, - "media_sources": { - "id": 3, - "name": "Kaltura", - "media_type": "Video", - "created_at": "2022-05-06T11:44:46.000000Z", - "updated_at": null, - "deleted_at": null - } + "lti_tool_type": null }, { - "id": 53, - "user_id": 2, + "id": 2, + "user_id": 23, "organization_id": 1, - "tool_name": "Kaltura Settings", + "tool_name": "Kaltura Integration", "tool_url": "https://4515783.kaf.kaltura.com", "tool_domain": "4515783.kaf.kaltura.com", "lti_version": "LTI-1p0", "tool_consumer_key": "4515783", "tool_secret_key": "8ec6316c7792a1ce754814ccbb19e505", - "tool_description": "This is the demo Kaltura Integration", + "tool_description": "Testing kaltura integration", "tool_custom_parameter": null, "tool_content_selection_url": "https://4515783.kaf.kaltura.com", "tool_client_id": null, @@ -394,86 +484,84 @@ "tool_enabled_capability": null, "tool_icon": null, "tool_secure_icon": null, - "created_at": "2022-03-03T10:49:26.000000Z", - "updated_at": "2022-11-10T13:55:10.000000Z", + "created_at": null, + "updated_at": null, "deleted_at": null, "media_source_id": 3, + "lti_tool_type_id": null, "user": { - "id": 2, - "name": "Master Demo", - "email": "masterdemo@curriki.org", - "email_verified_at": "2020-09-11T23:52:40.000000Z", - "created_at": "2020-04-06T20:47:21.000000Z", - "updated_at": "2022-11-11T14:35:34.000000Z", - "first_name": "Master", - "last_name": "Demo", + "id": 23, + "name": "asim", + "email": "asim@curriki.org", + "email_verified_at": "2021-09-09T12:22:36.000000Z", + "created_at": "2021-09-09T12:22:37.000000Z", + "updated_at": "2021-09-09T12:23:12.000000Z", + "first_name": "Asim", + "last_name": "Sarwar", "organization_name": "Curriki", "job_title": "Admin", "address": null, - "phone_number": "03315035877", - "organization_type": "Government/EDU", + "phone_number": null, + "organization_type": "Other", "website": null, "deleted_at": null, - "role": "admin", - "gapi_access_token": "{\"token_type\":\"Bearer\",\"access_token\":\"ya29.a0Aa4xrXMz2nYYGvLe_LxdoFmE_E-DUSZV3uSyfd77xG48VxtoyGNBVOnCJY1_QlvYuc4Gxhea__tRI3CkSafXJPTa34QipZB0-FMUx6U0GaJBKdhnp80pTcqQCAsZHVFGy0qX3UouPNB-INpEMP9NoBPUXxv0XZ0aCgYKATASARASFQEjDvL9NYRYA2v8-QPyUvyqXY7Ebg0166\",\"scope\":\"email profile https://www.googleapis.com/auth/classroom.courses.readonly https://www.googleapis.com/auth/classroom.courses https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/classroom.topics https://www.googleapis.com/auth/classroom.coursework.students https://www.googleapis.com/auth/classroom.coursework.me openid https://www.googleapis.com/auth/userinfo.profile\",\"login_hint\":\"AJDLj6IhjPEjK-HinFn0-xSdbBgjitIliFKMmP0IT37J-BCTcJsZrGyvb0O_n_EitspbaxdcIaoi4y9ViqLw4B6YYlYfUWLYX4riG6vSk5EdAtrGb5QSa6w\",\"expires_in\":3599,\"id_token\":\"eyJhbGciOiJSUzI1NiIsImtpZCI6ImVlMWI5Zjg4Y2ZlMzE1MWRkZDI4NGE2MWJmOGNlY2Y2NTliMTMwY2YiLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwiYXpwIjoiODk4MTQzOTM5ODM0LTlpb3VpMmk5Z2hncm1jZ21ndGcwaDZyc2Y4M2QwdDBjLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiYXVkIjoiODk4MTQzOTM5ODM0LTlpb3VpMmk5Z2hncm1jZ21ndGcwaDZyc2Y4M2QwdDBjLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwic3ViIjoiMTAxNDcyOTI4Mzc5NDcwMTY1MTgzIiwiaGQiOiJjdXJyaWtpLm9yZyIsImVtYWlsIjoiYXFpYkBjdXJyaWtpLm9yZyIsImVtYWlsX3ZlcmlmaWVkIjp0cnVlLCJhdF9oYXNoIjoiNWUtUDdteUt2WVVvaDdkQ0h0cTZldyIsIm5hbWUiOiJBcWliIE5hd2F6IiwicGljdHVyZSI6Imh0dHBzOi8vbGgzLmdvb2dsZXVzZXJjb250ZW50LmNvbS9hL0FMbTV3dTFEZXgwc0oxNFE1a2Q2V0xMZjZidG9mRlJqcjlXSjB2UEtXT0dJPXM5Ni1jIiwiZ2l2ZW5fbmFtZSI6IkFxaWIiLCJmYW1pbHlfbmFtZSI6Ik5hd2F6IiwibG9jYWxlIjoiZW4iLCJpYXQiOjE2NjY2OTAzMDUsImV4cCI6MTY2NjY5MzkwNSwianRpIjoiNmFmYTU0NzFhMDJlZmVhMTM5ZjBjY2RjODRjMjM3YTRhODVhNzcwNyJ9.eS9r6W1RH7TTGlCPBDUAe3T24SjeRrOY-o57CIKKYoHe1ZvpSqsv0IhWRCgqEUnKGM5asqnN4KalTPNh_sE4kGxGq_M76OA489kBGCTjImXlYMXG8M45WSkSqQXOeaASjgWju9AOmliUe82dLtA6qb6Q1g4Zw3slkLKEY9_YwnSwQDbZ1qCacYXEEFpdn6Hfg7LVvHKcNwespVrdyq3HbyULDFtLbl4WLBAx1cQZ7bHupnNDvDdY6adQPWQCNY4PcM2magS3eSxd7ZRByELLymMDcHs3-9jdo_aaOvNEviOhVTERylJR2r8KXRrYAmBOShdDjhxdmN69UzbOa35Zeg\",\"session_state\":{\"extraQueryParams\":{\"authuser\":\"0\"}},\"first_issued_at\":1666690305271,\"expires_at\":1666693904271,\"idpId\":\"google\"}", - "hubspot": true, + "role": null, + "hubspot": false, "subscribed": true, - "subscribed_ip": "192.168.96.10", + "subscribed_ip": "127.0.0.1", + "gapi_access_token": null, "membership_type_id": 2, - "temp_password": null, - "msteam_access_token": "eyJ0eXAiOiJKV1QiLCJub25jZSI6Ikh6ZG5qQmswZm9aZFJFZnM5WGNoM0xlWWRBOXRvYUNmZjZENWdBYXNGLWMiLCJhbGciOiJSUzI1NiIsIng1dC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iNzlmYmY0ZC0zZWY5LTQ2ODktODE0My03NmIxOTRlODU1MDkiXSwieG1zX3N0Ijp7InN1YiI6Ikw0ZUhZUlJjLWJRb2o3amJKYTBIN3Y1ZzUwTWl1X3NwM0t0LUVxLW5ZRTQifSwieG1zX3RjZHQiOjE1OTE4OTc4ODR9.VaAWArPzkAOTm_mg59ZRWruEfwDQog8DG9tnCY2YRplNrC3cmwYWmqH02mcpWadBipn8PQEj9gR6JzwqI_WW0muu4aT3lhiE1S9246TSwfeluPieKGHpFJTtrc3RJs2-AH8Sigx0pywZYnzUBEp0nT2rdCLn0oFP-Pmnu-93N_szdNCFWnfBh41ksMnj8WuRlWYLtDifXZg04N5qmyWcS0IxCAQSzyQIIGDXrRoA2_0-vZGegFyt_B0l0C_-_3bJLPG-BBYYGGmb7RWIIqZeO19m6J90589aq04u4qRJ22KDU2bjCDtHeXsXASn9NiyQ-ZB5yY6Tl2T4rRI19uwQMA" + "msteam_access_token": null }, "organization": { "id": 1, - "name": "CurrikiStudio", - "description": "This is our default Organization for Studio.", + "name": "Curriki Studio", + "description": "Curriki Studio, default organization.", "domain": "currikistudio", "parent_id": null, - "image": "https://dev.currikistudio.org/api/storage/organizations/H01h34rZGV6gyMayurX8dwpkXZd4X3c0n8NJiUXu.png", + "image": null, "created_at": null, - "updated_at": "2022-11-07T11:29:14.000000Z", + "updated_at": null, "deleted_at": null, "self_registration": true, - "account_id": "AC5771e791affd4176966bf63c846c8701", - "api_key": "TO2BF2E47CCCDD4A04944984A4E8275193", - "unit_path": "demo", - "noovo_client_id": "Noovo_Demo", + "account_id": null, + "api_key": null, + "unit_path": null, + "noovo_client_id": null, "gcr_project_visibility": true, - "gcr_playlist_visibility": true, - "gcr_activity_visibility": true, - "tos_type": "URL", - "tos_url": "https://www.curriki.org/terms-of-service/", + "gcr_playlist_visibility": false, + "gcr_activity_visibility": false, + "tos_type": null, + "tos_url": null, "tos_content": null, - "privacy_policy_type": "URL", - "privacy_policy_url": "https://www.curriki.org/privacy-policy/", + "privacy_policy_type": null, + "privacy_policy_url": null, "privacy_policy_content": null, - "primary_color": "#084892", - "secondary_color": "#F8AF2C", - "tertiary_color": "#515151", - "primary_font_family": "rubic", - "secondary_font_family": "Open Sans, sans-serif", - "favicon": "https://dev.currikistudio.org/api/storage/organizations/QqwMYyeWq7WxQHzy7LDdI0mRBBA3g2qnLm2wd4Ib.svg", - "msteam_client_id": "5e0ea881-693a-4f0a-94a7-dcef7b5accd6", + "primary_color": null, + "secondary_color": null, + "tertiary_color": null, + "primary_font_family": null, + "secondary_font_family": null, + "favicon": null, + "msteam_client_id": null, "msteam_secret_id": null, - "msteam_tenant_id": "75f881ff-c83b-44de-a964-f0f9ee64c60c", - "msteam_secret_id_expiry": "2022-09-29", + "msteam_tenant_id": null, + "msteam_secret_id_expiry": null, "msteam_project_visibility": true, - "msteam_playlist_visibility": true, - "msteam_activity_visibility": true + "msteam_playlist_visibility": false, + "msteam_activity_visibility": false, + "auto_approve": false, + "activity_title_text": "Title", + "activity_title_placeholder": "Give your layout a name...", + "h5p_reuse_option": true, + "h5p_embed_option": true }, - "media_sources": { - "id": 3, - "name": "Kaltura", - "media_type": "Video", - "created_at": "2022-05-06T11:44:46.000000Z", - "updated_at": null, - "deleted_at": null - } + "lti_tool_type": null } ], "links": { - "first": "http://dev.currikistudio.org/api/v1/suborganizations/1/lti-tool-settings?page=1", - "last": "http://dev.currikistudio.org/api/v1/suborganizations/1/lti-tool-settings?page=1", + "first": "http://curriki-studio-api.local/api/v1/suborganizations/1/lti-tool-settings?page=1", + "last": "http://curriki-studio-api.local/api/v1/suborganizations/1/lti-tool-settings?page=1", "prev": null, "next": null }, @@ -481,9 +569,26 @@ "current_page": 1, "from": 1, "last_page": 1, - "path": "http://dev.currikistudio.org/api/v1/suborganizations/1/lti-tool-settings", + "links": [ + { + "url": null, + "label": "« Previous", + "active": false + }, + { + "url": "http://curriki-studio-api.local/api/v1/suborganizations/1/lti-tool-settings?page=1", + "label": "1", + "active": true + }, + { + "url": null, + "label": "Next »", + "active": false + } + ], + "path": "http://curriki-studio-api.local/api/v1/suborganizations/1/lti-tool-settings", "per_page": 10, - "to": 5, - "total": 5 + "to": 6, + "total": 6 } } \ No newline at end of file diff --git a/storage/responses/admin/lti-tool/lti-tool-settings-show.json b/storage/responses/admin/lti-tool/lti-tool-settings-show.json index 8b2bfc539..9231507b5 100644 --- a/storage/responses/admin/lti-tool/lti-tool-settings-show.json +++ b/storage/responses/admin/lti-tool/lti-tool-settings-show.json @@ -1,26 +1,27 @@ { "data": { - "id": 2, + "id": 43, "user_id": 23, "organization_id": 1, - "tool_name": "Kaltura Integration", - "tool_url": "https://4515783.kaf.kaltura.com", - "tool_domain": "4515783.kaf.kaltura.com", + "tool_name": "Kaltura Test", + "tool_url": "https://ks.com", + "tool_domain": "ks.com", "lti_version": "LTI-1p0", - "tool_consumer_key": "4515783", - "tool_secret_key": "8ec6316c7792a1ce754814ccbb19e505", - "tool_description": "Testing kaltura integration", + "tool_consumer_key": "fe62bf490718e403ab6b0e2d926a2ce4ffbb11a16d", + "tool_secret_key": "8484fae8d7c0903f8deeda1fd5bcbc0dad", + "tool_description": "Testing Vimeo API", "tool_custom_parameter": null, - "tool_content_selection_url": "https://4515783.kaf.kaltura.com", + "tool_content_selection_url": "https://vimeod.com", "tool_client_id": null, "tool_proxy_id": null, "tool_enabled_capability": null, "tool_icon": null, "tool_secure_icon": null, - "created_at": null, - "updated_at": null, + "created_at": "2023-03-03T10:04:15.000000Z", + "updated_at": "2023-03-03T10:06:55.000000Z", "deleted_at": null, - "media_source_id": 3, + "media_source_id": null, + "lti_tool_type_id": 1, "user": { "id": 23, "name": "asim", @@ -81,13 +82,17 @@ "msteam_secret_id_expiry": null, "msteam_project_visibility": true, "msteam_playlist_visibility": false, - "msteam_activity_visibility": false + "msteam_activity_visibility": false, + "auto_approve": false, + "activity_title_text": "Title", + "activity_title_placeholder": "Give your layout a name...", + "h5p_reuse_option": true, + "h5p_embed_option": true }, - "media_sources": { - "id": 3, + "lti_tool_type": { + "id": 1, "name": "Kaltura", - "media_type": "Video", - "created_at": "2022-05-09T08:18:12.000000Z", + "created_at": "2023-02-27T12:27:51.000000Z", "updated_at": null, "deleted_at": null } diff --git a/storage/responses/admin/lti-tool/lti-tool-settings-update.json b/storage/responses/admin/lti-tool/lti-tool-settings-update.json index 48a397f94..75ac1d2e9 100644 --- a/storage/responses/admin/lti-tool/lti-tool-settings-update.json +++ b/storage/responses/admin/lti-tool/lti-tool-settings-update.json @@ -1,15 +1,15 @@ { "message": "Lti tool setting updated successfully!", "data": { - "id": 37, + "id": 43, "user_id": 23, "organization_id": 1, - "tool_name": "Vimeo Test", - "tool_url": "https://vimeode.com", - "tool_domain": "vimeode.com", + "tool_name": "Kaltura Test", + "tool_url": "https://ks.com", + "tool_domain": "ks.com", "lti_version": "LTI-1p0", - "tool_consumer_key": "fe62bf490718e403ab6b0e2926a2ce4ffbb11a16d", - "tool_secret_key": "8484fae8d7c0903f8deeda1f5bcbc0dad", + "tool_consumer_key": "fe62bf490718e403ab6b0e2d926a2ce4ffbb11a16d", + "tool_secret_key": "8484fae8d7c0903f8deeda1fd5bcbc0dad", "tool_description": "Testing Vimeo API", "tool_custom_parameter": null, "tool_content_selection_url": "https://vimeod.com", @@ -18,10 +18,11 @@ "tool_enabled_capability": null, "tool_icon": null, "tool_secure_icon": null, - "created_at": "2022-11-18T11:48:16.000000Z", - "updated_at": "2022-11-18T11:50:16.000000Z", + "created_at": "2023-03-03T10:04:15.000000Z", + "updated_at": "2023-03-03T10:06:55.000000Z", "deleted_at": null, - "media_source_id": 3, + "media_source_id": null, + "lti_tool_type_id": 1, "user": { "id": 23, "name": "asim", @@ -82,13 +83,17 @@ "msteam_secret_id_expiry": null, "msteam_project_visibility": true, "msteam_playlist_visibility": false, - "msteam_activity_visibility": false + "msteam_activity_visibility": false, + "auto_approve": false, + "activity_title_text": "Title", + "activity_title_placeholder": "Give your layout a name...", + "h5p_reuse_option": true, + "h5p_embed_option": true }, - "media_sources": { - "id": 3, + "lti_tool_type": { + "id": 1, "name": "Kaltura", - "media_type": "Video", - "created_at": "2022-05-09T08:18:12.000000Z", + "created_at": "2023-02-27T12:27:51.000000Z", "updated_at": null, "deleted_at": null } diff --git a/storage/responses/admin/lti-tool/lti-tool-type-list.json b/storage/responses/admin/lti-tool/lti-tool-type-list.json new file mode 100644 index 000000000..257ea1a5f --- /dev/null +++ b/storage/responses/admin/lti-tool/lti-tool-type-list.json @@ -0,0 +1,11 @@ +{ + "data": [ + { + "id": 1, + "name": "Kaltura", + "created_at": "2023-02-27T12:27:51.000000Z", + "updated_at": null, + "deleted_at": null + } + ] +} \ No newline at end of file diff --git a/storage/responses/organization/filter-media-source.json b/storage/responses/organization/filter-media-source.json deleted file mode 100644 index 6663ed540..000000000 --- a/storage/responses/organization/filter-media-source.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "data": [ - { - "id": 3, - "name": "Kaltura", - "media_type": "Video", - "created_at": "2022-05-09T08:18:12.000000Z", - "updated_at": null, - "deleted_at": null, - "pivot": { - "organization_id": 1, - "media_source_id": 3, - "h5p_library": null, - "lti_tool_settings_status": true, - "created_at": "2022-11-01T14:27:41.000000Z", - "updated_at": "2022-11-02T12:54:59.000000Z" - } - }, - { - "id": 6, - "name": "Vimeo", - "media_type": "Video", - "created_at": "2022-05-09T08:18:12.000000Z", - "updated_at": null, - "deleted_at": null, - "pivot": { - "organization_id": 1, - "media_source_id": 6, - "h5p_library": null, - "lti_tool_settings_status": true, - "created_at": "2022-11-01T14:27:41.000000Z", - "updated_at": "2022-11-02T12:54:59.000000Z" - } - }, - { - "id": 13, - "name": "Komodo", - "media_type": "Video", - "created_at": "2022-08-01T09:44:58.000000Z", - "updated_at": null, - "deleted_at": null, - "pivot": { - "organization_id": 1, - "media_source_id": 13, - "h5p_library": null, - "lti_tool_settings_status": true, - "created_at": "2022-11-01T14:27:41.000000Z", - "updated_at": "2022-11-02T12:55:00.000000Z" - } - } - ] -} \ No newline at end of file