|
14 | 14 | user_id = 'user_id' |
15 | 15 | message = { |
16 | 16 | type: 'location', |
17 | | - title: 'LINE Corporation.', |
18 | | - address: 'Hikarie Shibuya-ku Tokyo 151-0002', |
19 | | - latitude: 35.61823286112982, |
20 | | - longitude: 139.72824096679688, |
| 17 | + title: 'National Diet Building', |
| 18 | + address: 'Nagatacho 1-7-1 Chiyoda-ku, Tokyo 100-0014' |
| 19 | + latitude: 35.675862, |
| 20 | + longitude: 139.744967, |
21 | 21 | } |
22 | 22 | response = client.push_message(user_id, message) |
23 | 23 |
|
|
41 | 41 | user_id = 'user_id' |
42 | 42 | message = { |
43 | 43 | type: 'location', |
44 | | - title: 'LINE Corporation.', |
45 | | - address: 'Hikarie Shibuya-ku Tokyo 151-0002', |
46 | | - latitude: 35.61823286112982, |
47 | | - longitude: 139.72824096679688, |
| 44 | + title: 'National Diet Building', |
| 45 | + address: 'Nagatacho 1-7-1 Chiyoda-ku, Tokyo 100-0014' |
| 46 | + latitude: 35.675862, |
| 47 | + longitude: 139.744967, |
48 | 48 | } |
49 | 49 | response = client.push_message(user_id, message, payload: {customAggregationUnits: ['test']}) |
50 | 50 |
|
|
69 | 69 | reply_token = 'reply_token' |
70 | 70 | message = { |
71 | 71 | type: 'location', |
72 | | - title: 'LINE Corporation.', |
73 | | - address: 'Hikarie Shibuya-ku Tokyo 151-0002', |
74 | | - latitude: 35.61823286112982, |
75 | | - longitude: 139.72824096679688, |
| 72 | + title: 'National Diet Building', |
| 73 | + address: 'Nagatacho 1-7-1 Chiyoda-ku, Tokyo 100-0014' |
| 74 | + latitude: 35.675862, |
| 75 | + longitude: 139.744967, |
76 | 76 | } |
77 | 77 | response = client.reply_message(reply_token, message) |
78 | 78 |
|
|
96 | 96 | user_ids = ['user1', 'user2'] |
97 | 97 | message = { |
98 | 98 | type: 'location', |
99 | | - title: 'LINE Corporation.', |
100 | | - address: 'Hikarie Shibuya-ku Tokyo 151-0002', |
101 | | - latitude: 35.61823286112982, |
102 | | - longitude: 139.72824096679688, |
| 99 | + title: 'National Diet Building', |
| 100 | + address: 'Nagatacho 1-7-1 Chiyoda-ku, Tokyo 100-0014' |
| 101 | + latitude: 35.675862, |
| 102 | + longitude: 139.744967, |
103 | 103 | } |
104 | 104 | response = client.multicast(user_ids, message) |
105 | 105 |
|
|
123 | 123 | user_ids = ['user1', 'user2'] |
124 | 124 | message = { |
125 | 125 | type: 'location', |
126 | | - title: 'LINE Corporation.', |
127 | | - address: 'Hikarie Shibuya-ku Tokyo 151-0002', |
128 | | - latitude: 35.61823286112982, |
129 | | - longitude: 139.72824096679688, |
| 126 | + title: 'National Diet Building', |
| 127 | + address: 'Nagatacho 1-7-1 Chiyoda-ku, Tokyo 100-0014' |
| 128 | + latitude: 35.675862, |
| 129 | + longitude: 139.744967, |
130 | 130 | } |
131 | 131 | response = client.multicast(user_ids, message, payload: {customAggregationUnits: ['test']}) |
132 | 132 |
|
|
0 commit comments