@@ -816,6 +816,22 @@ typedef NS_ENUM(NSUInteger, BranchCreditHistoryOrder) {
816816 */
817817- (NSString *)getShortUrlWithParams : (NSDictionary *)params andTags : (NSArray *)tags andAlias : (NSString *)alias andChannel : (NSString *)channel andFeature : (NSString *)feature andStage : (NSString *)stage andMatchDuration : (NSUInteger )duration ;
818818
819+
820+ /* *
821+ Get a short url with specified params, channel, feature, stage, campaign and match duration. The usage type will default to unlimited.
822+
823+ @param params Dictionary of parameters to include in the link.
824+ @param tags An array of tags to associate with this link, useful for tracking.
825+ @param alias The alias for a link.
826+ @param channel The channel for the link. Examples could be Facebook, Twitter, SMS, etc, depending on where it will be shared.
827+ @param feature The feature this is utilizing. Examples could be Sharing, Referring, Inviting, etc.
828+ @param stage The stage used for the generated link, indicating what part of a funnel the user is in.
829+ @param campaign Use this field to organize the links by actual marketing campaign.
830+ @param matchDuration How long to keep an unmatched link click in the Branch backend server's queue before discarding.
831+ @warning This method makes a synchronous url request.
832+ */
833+ - (NSString *)getShortUrlWithParams : (NSDictionary *)params andTags : (NSArray *)tags andAlias : (NSString *)alias andChannel : (NSString *)channel andFeature : (NSString *)feature andStage : (NSString *)stage andCampaign :campaign andMatchDuration : (NSUInteger )duration ;
834+
819835#pragma mark - Long Url generation
820836
821837// /--------------------------
@@ -1026,6 +1042,22 @@ typedef NS_ENUM(NSUInteger, BranchCreditHistoryOrder) {
10261042 */
10271043- (void )getShortUrlWithParams : (NSDictionary *)params andTags : (NSArray *)tags andAlias : (NSString *)alias andMatchDuration : (NSUInteger )duration andChannel : (NSString *)channel andFeature : (NSString *)feature andStage : (NSString *)stage andCallback : (callbackWithUrl)callback ;
10281044
1045+ /* *
1046+ Get a short url with the specified params, tags, channel, feature, stage, campaign and match duration. The usage type will default to unlimited.
1047+
1048+ @param params Dictionary of parameters to include in the link.
1049+ @param channel The channel for the link. Examples could be Facebook, Twitter, SMS, etc, depending on where it will be shared.
1050+ @param tags An array of tags to associate with this link, useful for tracking.
1051+ @param feature The feature this is utilizing. Examples could be Sharing, Referring, Inviting, etc.
1052+ @param stage The stage used for the generated link, indicating what part of a funnel the user is in.
1053+ @param matchDuration How long to keep an unmatched link click in the Branch backend server's queue before discarding.
1054+ @param campaign Use this field to organize the links by actual marketing campaign.
1055+ @param callback Callback called with the url.
1056+ @param alias The alias for a link.
1057+ @warning This can fail if the alias is already taken.
1058+ */
1059+ - (void )getShortUrlWithParams : (NSDictionary *)params andTags : (NSArray *)tags andAlias : (NSString *)alias andMatchDuration : (NSUInteger )duration andChannel : (NSString *)channel andFeature : (NSString *)feature andStage : (NSString *)stage andCampaign : (NSString *)campaign andCallback : (callbackWithUrl)callback ;
1060+
10291061- (void )getSpotlightUrlWithParams : (NSDictionary *)params callback : (callbackWithParams)callback ;
10301062
10311063#pragma mark - Content Discovery methods
0 commit comments