81 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 10+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+2 more
Paul_Ferrie says

Hi guys,

I am messing around with the api to see if i can load my most recent files into my site for display and link back to flashden. I tried using version1 api and then noticed the the xml output would juggle positions. This also seem to be the case for edge as well. One minute the file title is in the first node then the next minute it’s in the last node. I would expect the xml would keep to one format of output?

Maybe it’s the way i am loading this into flash? Is there an example fla that shows the way it should be done?

is there an issue with the api?

164 posts
  • Has been part of the Envato Community for over 6 years
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+4 more
hagdesigns says

I’m not sure if what you are experiencing is an issue with your code or the API , but yes, there are some issues with the API . The main one (for me anyway) is that it doesn’t fetch item thumbnails correctly.

81 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 10+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+2 more
Paul_Ferrie says

All the data dopes seem to be correct, even the thumbnails(not before) Here is my output http://marketplace.envato.com/api/edge/new-files-from-user:Paul_Ferrie,flashden.xml

if you load the page up and after a couple of minutes refresh the page you will see that the items in the output change positions.

8271 posts Community Moderator
  • Has referred 10+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Attended one of our Meetups around the world
+9 more
MSFX Moderator says
I’m not sure if what you are experiencing is an issue with your code or the API , but yes, there are some issues with the API . The main one (for me anyway) is that it doesn’t fetch item thumbnails correctly.

+1

This is being looked at now :)

431 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 1+ members
  • Located in Australia
  • Has been a beta tester for an Envato feature
+9 more
john says

The thumbnails are fine now.

One minute the file title is in the first node then the next minute it’s in the last node. I would expect the xml would keep to one format of output?

That’s a dangerous thing to expect, not even in regards to our API , but for XML parsing in general. There’s nothing in the XML spec that specifies that elements should be ordered. To quote this good article on xml design

For example, if you manage data in hash tables or other unordered data structures in the application domain, you might face additional work re-assembling elements into the order set by a schema. In records-oriented XML , you should probably use unordered patterns unless you have specific reason for ordering them (for example, when a specific order is already specified in the application domain model).

I don’t know much about how flash parses XML so you might need some help from some of the other authors on what the best practices are.

8271 posts Community Moderator
  • Has referred 10+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Attended one of our Meetups around the world
+9 more
MSFX Moderator says
The thumbnails are fine now.
nice one John :)

Can you also look at the bug where total_earnings = balance… :(

Not sure how possible but it would be sweet to split earnings into commission and referals… could you do that?

Cheers, keep up the good work :)

8271 posts Community Moderator
  • Has referred 10+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Attended one of our Meetups around the world
+9 more
MSFX Moderator says
One minute the file title is in the first node then the next minute it’s in the last node. I would expect the xml would keep to one format of output?

That’s a dangerous thing to expect, not even in regards to our API , but for XML parsing in general. There’s nothing in the XML spec that specifies that elements should be ordered. To quote this good article on xml design

Maybe an extra parameter that allowed us to sort by name / date added etc.. or a node of the date the file was added so we can sort them chronologically…?

by
by
by
by
by
by