Home > Backend Development > PHP Tutorial > Detailed explanation of the case of synchronous recommended operation API interface implemented in PHP

Detailed explanation of the case of synchronous recommended operation API interface implemented in PHP

墨辰丷
Release: 2023-03-28 12:48:01
Original
1860 people have browsed it

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.

Related recommendations: Detailed explanation of bind_param() function usage in

php


php

Method to implement transaction rollback
##php

Use the exec() function under PDO to implement the query Method to determine the number of rows affected after execution


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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template