This article mainly introduces the synchronous recommended operation API interface case implemented in PHP, and analyzes the specific functions, interfaces, methods, parameters and related usage skills of the synchronous recommended operation based on specific examples. Friends in need can refer to the following
The example of this article analyzes the synchronization recommended operation API interface implemented by PHP. Share it with everyone for your reference, the details are as follows:
Document
1. Function
Synchronized recommendation relationship
2. Interface method
syncRelation
3. Parameter description
OriginalUsername Query user name
RecommandUsername Recommender user name
4. Return value
status 1 success 9 failure
5. Remarks
Status= 1 The original user does not exist and the relationship is not established
Status=2 The recommended user does not exist and the relationship is not established
Status=3 The original user exists and there is no recommender, the recommended user also exists and the relationship is successfully established
Status =4 The original user exists, and there is already a recommender. The recommender is a passed recommended user, and the relationship will no longer be re-established.
Status=5 The original user exists, and there is already a recommender, and the recommender is not a passed recommended user. The relationship has been re-established. The original recommender is
The above is the entire content of this article, I hope it will be helpful to everyone's study.
Method to implement transaction rollback
##php
The above is the detailed content of Detailed explanation of the case of synchronous recommended operation API interface implemented in PHP. For more information, please follow other related articles on the PHP Chinese website!