Comments (6)
Can you please share what was the issue?
Regarding the latter issue, it will be probably connected to the import of the Requests
.
use Recombee\RecommApi\Requests as Reqs;
...
$req = new Reqs\AddUser("user1");
Please see the code examples for more info.
from php-api-client.
Resolved this but now Uncaught Error: Class "AddUser" not found when using $client->send(new AddUser($user_id));
from php-api-client.
The code examples that I found for AddUser do not have Reqs\AddUser on AddUser, I just worked this out so all good.
from php-api-client.
Sorry thought I had resolved it, Reqs\AddUser gives Uncaught Recombee\RecommApi\Exceptions\ResponseException: {"error": "Method not allowed.", "statusCode": 405, "statusMessage": "method not allowed"}
from php-api-client.
Will not work, I have been able to import items but using the same credentials I get
Fatal error: Uncaught Recombee\RecommApi\Exceptions\ResponseException: {"error": "Method not allowed.", "statusCode": 405, "statusMessage": "method not allowed"} in /home/cognitech/vendor/recombee/php-api-client/src/RecommApi/Client.php:216
$req = new Reqs\AddUser(USER);
$client->send($req);
Strangely , there are users in the db
from php-api-client.
The most probable reason is passing an empty or NULL userId
, leading to a wrong URL of the REST call.
Can you please check what is being passed to AddUser
?
from php-api-client.
Related Issues (19)
- Composer error HOT 2
- No actions being stored HOT 30
- No able to retrieve recommendations HOT 2
- FR: Create database via API HOT 1
- Invalid HMAC signature HOT 2
- Empty json response is evaluated as false HOT 2
- Batch processing and numeric key HOT 6
- Curl empty reply from server HOT 15
- Missing info in batch reply HOT 3
- Client did not get response within #1000 ms HOT 5
- Support PSR-18 HOT 1
- Support GZIP encoded POSTs/GETs via CURL HOT 6
- Escaping Method for filter Expressions
- Problems while installing the php-api-client 3.1 HOT 8
- Client hides all connection errors as ApiTimeoutException; can't include previous Exception instance HOT 1
- Batch method and the problem with identifying original request HOT 1
- Creation of dynamic property Recombee\RecommApi\Requests\SetItemValues::$optional is deprecated
- PHP 8.3 deprecation error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-api-client.