-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconstants.js
102 lines (97 loc) · 2.03 KB
/
constants.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
export const NAME = 'movies';
//Redux Action Types
export const DATA_AVAILABLE = `${NAME}/DATA_AVAILABLE`;
//API URL
export const API_KEY = '?api_key=a3e3a1d79235a1ef189dbb0c243f240e';
export const API_PARAMS = '&page=1&append_to_response=videos,images';
export const API_URL = 'https://api.themoviedb.org/3';
export const IMAGE_URL = 'http://image.tmdb.org/t/p/original';
//API End Points
export const POPULAR = `${API_URL}/movie/popular${API_KEY}`;
export const TOP_RATED = `${API_URL}/movie/top_rated${API_KEY}`;
export const NOW_PLAYING = `${API_URL}/movie/now_playing${API_KEY}`;
export const UPCOMING = `${API_URL}/movie/upcoming${API_KEY}`;
export const DISCOVER = `${API_URL}/discover/movie${API_KEY}`;
export const SEARCH = `${API_URL}/search/movie${API_KEY}`;
export const MOVIE_DETAILS = `${API_URL}/movie/`;
export const CREDITS = `/credits${API_KEY}${API_PARAMS}`;
export const SIMILAR = `/similar${API_KEY}${API_PARAMS}`;
//GENRES
export const GENRES = [
{
"id": 28,
"name": "Action"
},
{
"id": 12,
"name": "Adventure"
},
{
"id": 16,
"name": "Animation"
},
{
"id": 35,
"name": "Comedy"
},
{
"id": 80,
"name": "Crime"
},
{
"id": 99,
"name": "Documentary"
},
{
"id": 18,
"name": "Drama"
},
{
"id": 10751,
"name": "Family"
},
{
"id": 14,
"name": "Fantasy"
},
{
"id": 36,
"name": "History"
},
{
"id": 27,
"name": "Horror"
},
{
"id": 10402,
"name": "Music"
},
{
"id": 9648,
"name": "Mystery"
},
{
"id": 10749,
"name": "Romance"
},
{
"id": 878,
"name": "Science Fiction"
},
{
"id": 10770,
"name": "TV Movie"
},
{
"id": 53,
"name": "Thriller"
},
{
"id": 10752,
"name": "War"
},
{
"id": 37,
"name": "Western"
}
];