sleemanj / gogotrademe Goto Github PK
View Code? Open in Web Editor NEWPHP Trade Me API Binding
License: Other
PHP Trade Me API Binding
License: Other
Not sure if this is intentional but 'Contacts' is missing from the $ElementOrder array for the switch case 'EditListingRequest' in gogoTradeMe.php, which means it's not included in the API request when editing listings.
Hi there, I'm working with a legacy project that implements your module to display a list of TM job listings on the client's website. This has all been working well until recently when the API began returning the following error (from Chrome console):
ErrorDescription: "Your session has expired. Please log in again."
Request: "https://api.trademe.co.nz/v1/Search/Jobs.json?member_listing=2180750&rows=200
Just wondered if you had any ideas why this might be occuring? The app on the TM account is enabled and approved. Thanks in advance for any tips!
Thank you so much for the codes! All working good! I noticed that it times out often and I get this message: "fastal-error: uncaught exception.. you have not stored a access token, please re-connect.. Please advise what I need to modify to fix this. Many thanks
eg. calling DELETE on photo
http://developer.trademe.co.nz/api-reference/photo-methods/remove-a-photo/
{"Request":"https://api.tmsandbox.co.nz/v1/Photos/1296400/Remove.xml","ErrorDescription":"Invalid HMAC-SHA1 signature. Base string: DELETE&https%3A%2F%2Fapi.tmsandbox.co.nz%2Fv1%2FPhotos%2F1296400%2FRemove.xml&oauth_consumer_key%3D6C2137DEE16B84582BDD52DEA3225283C1%26oauth_nonce%3Dc362f39e4aae528f8bd4896b33a9bd78%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1440634755%26oauth_version%3D1.0"}
looks like it's missing the 'oauth_signature' when calling
trademe()->delete();
Hi,
its not an issue.
In init.php I want to store the token in a flat file.
Do I have to store the access token and request token for listings?
Is there an example?
Thanks, Michael
Hi there, I'm getting the following error when accessing example/connect.php on my server:
Undefined index: HTTP_PORT in .../example/connect.php on line 34
The line in question is:
if($_SERVER['HTTP_PORT'] != 443)
I have checked my key and secret are correct in config.php, and I am using https in the browser. I am a PHP noob, so apologies if I am missing something obvious here, or if there is a better place to ask these questions. Thanks in advance!
Fatal error: Uncaught exception 'Exception' with message 'Unknown data format: ' in C:\wamp\www\trademe\lib\gogoOAuth\gogoOAuthResponse.php:246 Stack trace: #0 C:\wamp\www\trademe\lib\gogoOAuth\gogoOAuthResponse.php(230): gogoOAuthResponse->data() #1 [internal function]: gogoOAuthResponse->__call('to_array', Array) #2 C:\wamp\www\trademe\lib\gogoOAuth\gogoOAuth.php(119): gogoTradeMeResponse->to_array() #3 C:\wamp\www\trademe\example\connect.php(16): gogoOAuth->get_request_token() #4 {main} thrown in C:\wamp\www\trademe\lib\gogoOAuth\gogoOAuthResponse.php on line 246
Any ideas?
Thanks heaps.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.