Posts by sevenspark

3518 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $750,000+ on Envato Market
  • Located in United States
  • Helps us moderate the forums
+10 more
sevenspark
Moderator
says

Thanks, Chris – yeah, I’m using it for a CodeCanyon WordPress plugin.

I appreciate the resource – looked through the code and I’m assuming you’re referring to ‘wp-download’. I will have to test that out and see if it returns anything for a plugin :)

I’d love to hear from a staff member/dev if that endpoint won’t count toward the download limit. Since the current download count isn’t made public, there’s no real way to tell until I actually hit the limit.

3518 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $750,000+ on Envato Market
  • Located in United States
  • Helps us moderate the forums
+10 more
sevenspark
Moderator
says

Thanks very much for your input, Gewora and Dave! I really appreciate it :)

The issue is that I’m hooking into the WordPress update system. So I have an update checker retrieving data from my server, at which point I need to return a link to the download package URL, which WordPress then holds onto until the user actually runs the upgrade.

So do you think if I made that download URL point to my own site, which then queried the Envato API, retrieved the download link, and redirected to it, that that would work? This is something I’d normally just experiment with, but since I’m running up against that limit, I want to maximize what I get out of every test :)

Thanks again!

Chris

3518 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $750,000+ on Envato Market
  • Located in United States
  • Helps us moderate the forums
+10 more
sevenspark
Moderator
says

Hey guys, question about the API:

Short version

Using the download-purchase API endpoint (which retrieves a download URL for the user) seems to count toward the file download limit, even if the file is never actually downloaded. I’m wondering if anyone can confirm that, if that is the intended functionality, and what is the best way to avoid hitting that limit.

Detailed version

I’m trying to provide my customers direct access to their plugin download package via the Envato API. I have been testing with a purchase code and API key, and using this endpoint:

http://marketplace.envato.com/api/v3/USERNAME/API-KEY/download-purchase:550e8400-e29b-41d4-a716-446655440000.json

See: http://marketplace.envato.com/api/documentation

The result set looks like this:

{"download-purchase":{"download_url":"_download_url_is_here_"}}

This was working great. I only ever actually followed the download URL and downloaded the file once (just to test it was working). After that, I explicitly never downloaded the file, specifically because I knew there were limitations on how many times I could do so.

However, after testing for a while, it suddenly stopped working, and returning a message that the download was not currently available. Checking the Downloads page for that account, I saw the message that I’d exceeded 20 downloads in 24 hours, and the download was temporarily disabled.

I didn’t actually download the file 20 times, but I bet I hit the API requesting a download link 20 times.

So here’s the issue:

It seems that just hitting the purchase-download end point, even without ever downloading the file, counts toward the file limit

Questions

So here are my questions:

1. Can anyone confirm this behavior?

My conclusion above, that even if you don’t download the file, it counts toward the download limit – has anyone else experienced this? (Perhaps I’m missing something)

Assuming this is the case:

2. Is this the intended functionality?

I’m wondering if a dev could comment on this and explain whether there is a purpose to counting API queries toward the limit, even if a download doesn’t occur (and, if you query the download-purchase endpoint, and then actually download the file, would that count as 2 downloads toward the limit)?

3. Is the result from the purchase-download endpoint good indefinitely?

If querying the download URL is going to count toward the download limit, obviously I can’t do this every time. Instead, I could cache the URL for a specific user, rather than hitting the API every time. However, is this download link good indefinitely? Can I provide the user with the same link 6 months from now and have it work? If not, what is its lifespan?

Update: as Gewora pointed out, it is a temporary link. Looking at the URL more closely, this should have been apparent to me :)

Obviously, I can’t provide this code to my customers if it’s going to burn through their download limit, so I’d like to find out what the best way around this is.

I’m wondering if anyone else has run into this previously and might have some insight. I’m going to submit a support ticket as well (since I need to clear that limit anyway), but I’m hoping others who have played with the API more might have some experience with this.

Thanks, guys! :)

Chris

3518 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $750,000+ on Envato Market
  • Located in United States
  • Helps us moderate the forums
+10 more
sevenspark
Moderator
says

I don’t think you’re getting spam from that demo site. It sounds more like the spam is coming through a contact form on your site, but because you imported the demo content, the email template in Contact Form 7 still has the text “This e-mail was sent from a contact form on Arista (http://demo.qkthemes.com/arista)" in it.

3518 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $750,000+ on Envato Market
  • Located in United States
  • Helps us moderate the forums
+10 more
sevenspark
Moderator
says

Go to https://account.envato.com/ (or click “Envato Account” in the dropdown), then log in and click “Edit Details” :)

3518 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $750,000+ on Envato Market
  • Located in United States
  • Helps us moderate the forums
+10 more
sevenspark
Moderator
says

I’ve invited my buyers for beta testing. I’ve demanded their purchase code to participate.

Exactly, this is how I always do it. I generally just post a topic in my support forum (where everyone is already authenticated anyway) asking for beta testers. I create a new forum section just for feedback on the beta. Tends to work pretty well.

3518 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $750,000+ on Envato Market
  • Located in United States
  • Helps us moderate the forums
+10 more
sevenspark
Moderator
says

I also definitely support this idea. At the very least, items should remain available for download for a limited period of time after removal, to give customers the opportunity to download the final version if they haven’t already.

3518 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $750,000+ on Envato Market
  • Located in United States
  • Helps us moderate the forums
+10 more
sevenspark
Moderator
says

Congrats, Dave!! :)

3518 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $750,000+ on Envato Market
  • Located in United States
  • Helps us moderate the forums
+10 more
sevenspark
Moderator
says

Did you click the button and check out the next page? I tried it just now and it shows me this:

Looks like a 24 hour turnaround. Or is that not what you’re asking?

3518 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $750,000+ on Envato Market
  • Located in United States
  • Helps us moderate the forums
+10 more
sevenspark
Moderator
says

On your downloads page, you should have two options – Installable WordPress file or All Files & Documentation.

You might want to try downloading the other one – it’s possible the author updated one but not the other by mistake. You might be downloading the one that they forgot to update and ended up with an older version.

by
by
by
by
by
by