I'm new to Firebase. I'm trying to make use of Dynamic Links. This is what I have so far...
var longUrl = 'https://example.com/' + window.location.hash;
var APIkey = 'My Web API Key Here';
var url = 'https://firebasedynamiclinks.googleapis.com/v1/shortLinks?key=' + APIkey;
var data = {
"longDynamicLink": "https://abc123.app.goo.gl/?link=" + longUrl,
"suffix": {
"option": "SHORT"
}
};
var request = $.ajax({
url: url,
dataType: 'json',
type: 'post',
contentType: 'application/json',
data: JSON.stringify(data),
processData: false,
success: function( data, textStatus, jQxhr ){
console.log(data);
console.log(textStatus);
console.log(jQxhr);
},
error: function( jqXhr, textStatus, errorThrown ){
console.log( errorThrown );
}
});
And I get a 400 error...
code:400
message:"Your project has not configured Dynamic Links. [https://firebase.google.com/docs/dynamic-links/rest#before_you_begin]"
status:"INVALID_ARGUMENT"
What does it mean by not configured Dynamic Links? Is "abc123" just a placeholder?