Home >Backend Development >PHP Tutorial >Could you please tell me about the app communication between Laravel and andriod?
May I ask if the communication between Laravel and andriod app can be received directly using $_POST and $_GET, and then echo json_decode(xxx); returns the information? Can this place be placed anywhere? Reply content:
<code class="language-json"><span class="p">{</span> <span class="nt">"data"</span><span class="p">:</span> <span class="p">[</span> <span class="p">{</span> <span class="nt">"id"</span><span class="p">:</span> <span class="mi">1</span><span class="p">,</span> <span class="nt">"title"</span><span class="p">:</span> <span class="s2">"VIDEO_1"</span><span class="p">,</span> <span class="p">},</span> <span class="p">{</span> <span class="nt">"id"</span><span class="p">:</span> <span class="mi">2</span><span class="p">,</span> <span class="nt">"title"</span><span class="p">:</span> <span class="s2">"VIDEO_2"</span><span class="p">,</span> <span class="p">},</span> <span class="p">{</span> <span class="err">......</span> <span class="p">}</span> <span class="p">],</span> <span class="nt">"timestamp"</span><span class="p">:</span> <span class="mi">1472200713</span><span class="p">,</span> <span class="nt">"status"</span><span class="p">:</span> <span class="mi">200</span> <span class="p">}</span> </code>