Skip to content
master
Switch branches/tags
Code
This branch is 24 commits ahead, 14 commits behind mixmaxhq:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
api
 
 
doc
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Wanelo Link Preview for Mixmax

Build Status

This is a home page for the open source Mixmax Wanelo Product Link Resolver.

Wanelo Product Links

Using It

To install the link resolver for your account, follow these instructions:

  1. Open up MixMax Integrations.
    • You can also get to this page by first clicking on 'Mixmax' in your Gmail sidebar, and then choosing "Integrations" in the left navigation.
  2. Once you are on the integrations page, scroll all the way down to the bottom.
  3. Click on the button that says Add Link Resolver.
  4. Fill out the form as follows:
    • Description: Wanelo Products
    • Regular Expression: wanelo.com/p/[0-9]+
    • Resolver API URL: https://mixmax-wanelo-link-resolver.herokuapp.com/resolver
  5. Click the Add link resolver button.

example

You should now be able to compose a new email, and paste any Wanelo Product URL, and see a fine preview of Wanelo product.

I'd like to note that the above URL is running on a free Heroku tier, and so it may take a few seconds to boot up the first time you use it.

Limitations

  • This will only work for wanelo products. User profiles, store profiles, etc. are not currently supported.
  • MixMax will display a small preview for products even without this link resolver, because Wanelo product pages conform to the Open Graph. However, they are far from perfect, and show only limited information.
  • You will need to add this resolver to each Gmail Account separately.

Developing It

See http://sdk.mixmax.com/docs/tutorial-giphy-link-preview for more information about how to create link resolvers.

Running locally

  1. Install using npm install
  2. Run using npm start

To simulate locally how Mixmax calls the resolver URL (to return HTML that goes into the email), pick any Wanelo product URL, and run it as below:

curl http://localhost:9146/resolver?url=https://wanelo.com/p/38126141

Using the Preview Mode

This resolver adds a simple way to preview — straight in the browser — the output from the resolver given a URL, both in JSON and HTML forms. This can be rather handy when developing the actual HTMl widget.

Instead of going to the /resolver page, just hit the home page of the resolver, and enter the product URL. Your should see something like this below:

example

Once you submit the form, and assuming you checked the preview box, you should see the full widget preview in your browser.

"Live" Preview of the Widget

Tests

The project uses Mocha library for tests, which can be run as follows:

npm test

Running Tests

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/kigster/wanelo-mixmax-link-resolver/issues.

Author

© 2016 Konstantin Gredeskoul, all rights reserved.

![title](file:///var/folders/dz/r8zs2sh953qd1k19gr0q3tj00000gn/T/DMDAF058E9C-F0FB-4DAB-92EF-BC0F07CD2962/mixmax-tests.png) Forked originally from the MixMax tutorial provided by

© 2015 MixMax, Inc.

License

This project is distributed under the MIT License.\

About

Wanelo link resolver for Mixmax, that currently resolves only product URLs.

Resources

License

Releases

No releases published

Packages

No packages published