BranchMetrics / branch-deep-linking-public-api

The Branch Metrics public API for mobile deep linking / deeplinking applications. Branch helps mobile apps grow with deep links / deeplinks that power referral systems, sharing links and invites with full attribution and analytics.
https://dev.branch.io/references/http_api/
145 stars 18 forks source link

Undocumented endpoint to get original link url? #14

Closed buritica closed 8 years ago

buritica commented 8 years ago

Hi,

some context In order to implement our custom landing pages, we needed to get some of the info that was used to create the branch link to show user name and photo form the landing. since the only thing we have available from the web after a successful redirection is the _branch_match_id and not the complete branch url, we are calling /v1/url with this _branch_match_id. This returns the original url, which we can then use to call the same endpoint, and get the original data.

question/bug

thanks

cc @julian-amaya, @jseros

dskatz22 commented 8 years ago

or can branch append something else to the desktop_url like the referral url

aaustin commented 8 years ago

Sorry guys - I'm sorry this wasn't answered before. We don't have proper alerts set on this repository. I'm surprised that even API call works actually.

In order to retrieve the referring link data from your site, please use the web SDK initialization code found here: https://github.com/BranchMetrics/Smart-App-Banner-Deep-Linking-Web-SDK#manual-installation. If a web session was referred by a Branch link, it will return a JSON dictionary of the associated data for you to act on.

I hope this helps!