Weespin Flutter SDK

pub package

Weespin helps you create deep links for your apps in a blink. Get started on www.weespin.io/.

How to use

1. Create an API key

Create a project and generate an API Key from your dashboard;

const weespin = Weespin(apiKey: "YOUR API KEY");
/// Create a new link
final link = await weespin.createLink(
    title: "My link",
    description: "Description test",
    image: "<binary file>",
    segments: ["news", "bananas"],
    customParams: ["utm", "productId"],
);

/// Shorten an existing link by providing values for custom parameters
final shortLink = await weespin.shortenLink(
    id: "link_id",
    params: { "utm": "android", "productId": "123" },
);

/// Create a link and get its short version
final shortLink = await weespin.createShortLink(
    title: "My link",
    description: "Description test",
    image: "<binary file>",
    segments: ["news", "bananas"],
    customParams: { "utm": "android", "productId": "123" },
);

Provide values for your custom parameters and you're ready to go!

/// full url (eg.: https://app.weespin.link/news/bananas?utm=android&productId=123)
print(link.shareLink({"utm": "android", "productId": "123"}));
/// or short url (eg.: https://weespin.link/xyZAbC)
print(shortLink.shortUrl); 

Use a plugin such as app_links to handle link intent.

Need help?

Contact support at contact@caelis-tech.studio.

Libraries

weespin_flutter