質問編集履歴

2

いらない内容の削除

2015/04/10 03:48

投稿

Shinog
Shinog

スコア99

test CHANGED
File without changes
test CHANGED
@@ -17,72 +17,6 @@
17
17
 
18
18
 
19
19
  是非ご教授のほどよろしくお願い申し上げます。
20
-
21
-
22
-
23
-
24
-
25
- <?php
26
-
27
-
28
-
29
- require_once("twitteroauth/twitteroauth.php");
30
-
31
- require_once("twitteroauth/OAuth.php");
32
-
33
-
34
-
35
-
36
-
37
- $consumerKey = "略";
38
-
39
- $consumerSecret = "略";
40
-
41
- $accessToken = "略";
42
-
43
- $accessTokenSecret = "略";
44
-
45
-
46
-
47
- $twObj = new TwitterOAuth($consumerKey,$consumerSecret,$accessToken,$accessTokenSecret);
48
-
49
-
50
-
51
- $andkey = "略";
52
-
53
- $options = array('q'=>$andkey,'count'=>'30');
54
-
55
-
56
-
57
- $json = $twObj->OAuthRequest(
58
-
59
- 'https://api.twitter.com/1.1/search/tweets.json',
60
-
61
- 'GET',
62
-
63
- $options
64
-
65
- );
66
-
67
-
68
-
69
- $jset = json_decode($json, true);
70
-
71
-
72
-
73
- foreach ($jset['statuses'] as $result){
74
-
75
- $content = $result['text'];
76
-
77
- $updated = $result['created_at'];
78
-
79
- $time = $time = date("Y-m-d H:i:s",strtotime($updated));
80
-
81
-
82
-
83
- }
84
-
85
- ?>
86
20
 
87
21
 
88
22
 

1

内容の追加

2015/04/10 03:48

投稿

Shinog
Shinog

スコア99

test CHANGED
File without changes
test CHANGED
@@ -17,6 +17,72 @@
17
17
 
18
18
 
19
19
  是非ご教授のほどよろしくお願い申し上げます。
20
+
21
+
22
+
23
+
24
+
25
+ <?php
26
+
27
+
28
+
29
+ require_once("twitteroauth/twitteroauth.php");
30
+
31
+ require_once("twitteroauth/OAuth.php");
32
+
33
+
34
+
35
+
36
+
37
+ $consumerKey = "略";
38
+
39
+ $consumerSecret = "略";
40
+
41
+ $accessToken = "略";
42
+
43
+ $accessTokenSecret = "略";
44
+
45
+
46
+
47
+ $twObj = new TwitterOAuth($consumerKey,$consumerSecret,$accessToken,$accessTokenSecret);
48
+
49
+
50
+
51
+ $andkey = "略";
52
+
53
+ $options = array('q'=>$andkey,'count'=>'30');
54
+
55
+
56
+
57
+ $json = $twObj->OAuthRequest(
58
+
59
+ 'https://api.twitter.com/1.1/search/tweets.json',
60
+
61
+ 'GET',
62
+
63
+ $options
64
+
65
+ );
66
+
67
+
68
+
69
+ $jset = json_decode($json, true);
70
+
71
+
72
+
73
+ foreach ($jset['statuses'] as $result){
74
+
75
+ $content = $result['text'];
76
+
77
+ $updated = $result['created_at'];
78
+
79
+ $time = $time = date("Y-m-d H:i:s",strtotime($updated));
80
+
81
+
82
+
83
+ }
84
+
85
+ ?>
20
86
 
21
87
 
22
88