-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrate userinfo endpoint to from display api v1 to v2
- Loading branch information
Showing
5 changed files
with
66 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
namespace App\Http\Clients\Enums; | ||
|
||
enum UserInfoEnum: string | ||
{ | ||
case OPEN_ID = 'open_id'; | ||
case AVATAR_URL = 'avatar_url'; | ||
case DISPLAY_NAME = 'display_name'; | ||
case AVATAR_URL_100 = 'avatar_url_100'; | ||
case IS_VERIFIED = 'is_verified'; | ||
case PROFILE_DEEP_LINK = 'profile_deep_link'; | ||
case BIO_DESCRIPTION = 'bio_description'; | ||
case AVATAR_LARGE_URL = 'avatar_large_url'; | ||
case UNION_ID = 'union_id'; | ||
case VIDEO_COUNT = 'video_count'; | ||
|
||
public static function values(): array | ||
{ | ||
return array_map(function($case) { | ||
return $case->value; | ||
}, self::cases()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
namespace App\Http\Clients\Enums; | ||
|
||
enum VideoListEnum: string | ||
{ | ||
case COVER_IMAGE_URL = 'cover_image_url'; | ||
case ID = 'id'; | ||
case TITLE = 'title'; | ||
case VIDEO_DESCRIPTION = 'video_description'; | ||
case DURATION = 'duration'; | ||
case HEIGHT = 'height'; | ||
case WIDTH = 'width'; | ||
case EMBED_HTML = 'embed_html'; | ||
case EMBED_LINK = 'embed_link'; | ||
|
||
public static function values(): array | ||
{ | ||
return array_map(function($case) { | ||
return $case->value; | ||
}, self::cases()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters