130 posts
  • Has been a member for 4-5 years
  • Exclusive Author
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 100 and 1 000 dollars
  • Referred between 1 and 9 users
  • Bought between 100 and 499 items
  • Netherlands
vanRijswijk says

I am getting the following message back for envato new items:

error: undefined method `to_sym’ for nil:nilclass

Is the API down or am i doing something wrong? I called to the following url.

http://marketplace.envato.com/api/edge/new-files:codecanyon,php

99 posts
  • Bought between 1 and 9 items
  • Referred between 1 and 9 users
  • Belgium
  • Sold between 10 000 and 50 000 dollars
  • Exclusive Author
  • Has been a member for 3-4 years
Lamovo says

I am getting the following message back for envato new items:

error: undefined method `to_sym’ for nil:nilclass

Is the API down or am i doing something wrong? I called to the following url.

http://marketplace.envato.com/api/edge/new-files:codecanyon,php

It should be: http://marketplace.envato.com/api/edge/new-files:marketplace,category.json

So specify a category and set the output to json instead of PHP . With json_decode you can convert the JSON output into a PHP object or array.

You can read more about the required parameters in the API documentation.

by
by
by
by
by
by