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

Making POST request to POST /v1/url #1

Closed roundrobin closed 10 years ago

roundrobin commented 10 years ago

I can't figure out how to use the /v1/url endpoint. I am making a POST request with curl and passing in the _appid (which I assume is my itunes id, is this right?) and the identity.

In which format do you expect the api key? Right now the endpoint returns the following:

{
    "error": {
        "code": 500,
        "message": "The server could not complete your request as specified. Please try again at a later time."
    }
}

The returned message is not very helpful. Can you help here?

aaustin commented 10 years ago

That's strange! Here's an example post I made from terminal with your app id that worked. Can you make sure you have all the fields?

curl -X POST -H "Content-Type: application/json" -d '{ "app_id":"your app id", "identity":"homepage", "data":"{\"title\":\"test deep link data\"}"}' http://api.branchmetrics.io/v1/url