Как я могу дать ссылку Reddit API PHPPhp

Кемеровские программисты php общаются здесь
Ответить
Гость
 Как я могу дать ссылку Reddit API PHP

Сообщение Гость »


I am sending content to Reddit with the following code. However, when I want to link a word, it always places the link next to the word. For example, (Hello) [Link]. I want the link to be directly attached to the word. How can I achieve this?

$richtext_json = json_encode([ "document" => [ [ "e" => "par", "c" => [ [ "e" => "text", "t" => "[hello](https://xxxxx.com)?", "f" => [] ] ] ] ] ]); // post data: posting a link to a subreddit $postData = array( 'title' => $subredditPostTitle, 'sr' => $subredditName, 'richtext_json' => $richtext_json, 'kind' => 'self' ); Can you solve my problem?


Источник: https://stackoverflow.com/questions/780 ... it-api-php
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Php»