I am looking for way to clear of twitter card cache using api
I am aware of this tool of Twitter helps in clearing the cache of the cards https://cards-dev.twitter.com/validator
I am looking for a way to integrate this process into my application. What I am looking for is something similiar to what facebook offers (https://developers.facebook.com/docs/sharing/opengraph/using-objects#update)
I did try a simple code like below which happens in the twitter’s tool. but I get 403 authorized. Is there a way to to authorize the below request ?
$(document).ready(function(){
$.post(
"https://cards-dev.twitter.com/validator/validate",
{
"url" : "http://superbotics.com",
"platform" : "Swift-12",
"authenticity_token" : "tkWubiFOndkChH58oJmophrLlVoQqbQmY3QZFTayFK6uq"
},
function(data){
console.log(data);
}
);
});
Any help is appriciated