Support Forums - Classified Ads Script Osclass
Osclass plugin support => Rest API Plugin => Topic started by: Farouk El Gharbaoui on September 25, 2023, 12:48:56 PM
-
Hi ,
This request &object=item&action=edit&itemId=xxx&price=100 is nott woking
Did i miss something ? im pretty sure something is wrong but i didn't find whats
-
Sure.
Many many other required parameters.
-
Thanks for reply ,
this is my demo request i try to send but the error message i get is 500
(URL + KEY ) &type=update&object=item&action=edit&itemId=xxxx&catId=32&contactName=John&[email protected]&price=25&countryId=MA®ionId=&cityId=&title=Hello+world+title&description=Today%20is%20a%20beautiful%20day%20to%20create%20new%20listing%20using%20API
did i miss something here ?
-
https://forums.osclasspoint.com/rest-api-plugin/post-new-ad-with-images/
-
The request you share with me its an INSERT request but im facing trouble with UPDATE request
-
Modify it based on core requirements.
Not that different
-
PLease excuse me but you are still not clear on that point. we respect the required input field but we still get 500 (Internal Server Error)
This is our request but and we have respected the requirement input should be filed
https://www.xxxx.xx/oc-content/plugins/rest/api.php?key=xxxxxxxxxxxxxx&type=update&object=item&action=edit&itemId=xxxx&catId=14&contactName=John&[email protected]&price=25¤cy=US&countryId=MA®ionId=306&cityId=22336&title[fr_FR]=Hellodansquelpartiedumondeilfuau&description[fr_FR]=dansunebienmindremesuredanslaspetitreldelapjfuuokhjhsdiuhijhzeufglqizufygkhqzeuhisygfliyqzeglifyglizuelfhuqze
Still not working
-
That's why on plugin page you have "Coding skills recommended" so you can identify such cases.
Osclass still miss something, you must debug update process and identify missing fields.
-
AH now is clear. OsClass who miss something OK
-
No, osclass expect required params and you have not send all of these.
-
The request you share with me its an INSERT request but im facing trouble with UPDATE request
@Farouk El Gharbaoui, were you able to at least POST/INSERT listing with image? If yes, please, what is your API call like? Because, tried, tried and didn't get anything.
Thank you very much
-
That's why on plugin page you have "Coding skills recommended" so you can identify such cases.
Osclass still miss something, you must debug update process and identify missing fields.
Still trying to understand what this meant "Coding Skills recommended".
If one buys this plugin and hast to go and build all call by themselves, what is the essence of buying this plugin? This is Osclass and we believe you are Pros at it and you made a plugin so we got the plugin to fast track development. But this is the case, it almost looks as though one has to make everything from scratch.
It will be nice this plugin is updated with clearer and detailed API Call documentation that one can use for a complete project.
Thank you for your understanding.
-
Plugin translate requests ro Osclass core.
You should be able to understand functions in core you want to use.
Just translator for osclass. Nothing more, nothing less.
If function X require 20 params, its not plugin requirement.
You want clear api docs, but you got postman request for similar call and you have problem to utilize it and adjust few params. What would change any kind of documentation if you have no idea how osclass core works...