Skip to content

Commit

Permalink
get video info via post request using innertube api key 0xced#545
Browse files Browse the repository at this point in the history
get video info via post request using innertube api key 0xced#545
  • Loading branch information
sixty8 committed Jul 27, 2021
1 parent d31f04d commit b40ce84
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions XCDYouTubeKit/XCDYouTubeClient.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ @implementation XCDYouTubeClient

@synthesize languageIdentifier = _languageIdentifier;

static NSString * _innertubeApiKey = @"AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8";

+ (instancetype) defaultClient
{
static XCDYouTubeClient *defaultClient;
Expand All @@ -29,6 +31,15 @@ - (instancetype) init
return [self initWithLanguageIdentifier:nil];
}


+ (NSString *)innertubeApiKey {
return _innertubeApiKey;
}

+ (void)setInnertubeApiKey:(NSString *)key {
_innertubeApiKey = key;
}

- (instancetype) initWithLanguageIdentifier:(NSString *)languageIdentifier
{
if (!(self = [super init]))
Expand Down

0 comments on commit b40ce84

Please sign in to comment.