質問編集履歴

1

不足情報の追加

2019/01/06 08:26

投稿

yusukekita
yusukekita

スコア11

test CHANGED
File without changes
test CHANGED
@@ -17,6 +17,46 @@
17
17
  https://api.rakuten.net/andruxnet/api/random-famous-quotes?endpoint=53aa60e4e4b0596140341ca4
18
18
 
19
19
  です。
20
+
21
+
22
+
23
+
24
+
25
+ ```apiphp
26
+
27
+ $response = Unirest\Request::post("https://andruxnet-random-famous-quotes.p.rapidapi.com/?count=1&cat=famous",
28
+
29
+ array(
30
+
31
+ "X-RapidAPI-Key" => "4c6bf8e325msh1b7a62b2c24675cp136917jsn4b09c909d6e0",
32
+
33
+ "Content-Type" => "application/x-www-form-urlencoded"
34
+
35
+ )
36
+
37
+ )->name('famous_word');
38
+
39
+ ```
40
+
41
+
42
+
43
+ ```blade
44
+
45
+ <form method="POST" action="{{ route('famous_word') }}" >
46
+
47
+ {{ csrf_field() }}
48
+
49
+
50
+
51
+ <input type="text" name="cat" value="famous">
52
+
53
+
54
+
55
+ <input type="submit">
56
+
57
+ </form>
58
+
59
+ ```
20
60
 
21
61
 
22
62