| 946 | |
| 947 | ---- |
| 948 | |
| 949 | == !SuggestMovie == |
| 950 | '''array !SuggestMovie( $token, $string )''' |
| 951 | |
| 952 | '''WARNING!!! BETA QUALITY - THIS METHOD CAN CHANGE IN FUTURE, CONTACT US FOR MORE INFO''' |
| 953 | |
| 954 | This can be used for suggesting movies with imdb code, while user type, $string can be minimum 1 character long. It returns movie infos ordered by priority (best guess/popularity). Use-case scenario for filling imdb id for example !UploadSubtitles() |
| 955 | |
| 956 | Example output for $string = 'matrix': |
| 957 | {{{ |
| 958 | Array |
| 959 | ( |
| 960 | [status] => 200 OK |
| 961 | [data] => Array |
| 962 | ( |
| 963 | [matrix] => Array |
| 964 | ( |
| 965 | [0] => Array |
| 966 | ( |
| 967 | [MovieName] => The Matrix |
| 968 | [MovieYear] => 1999 |
| 969 | [MovieKind] => movie |
| 970 | [IDMovieIMDB] => 0133093 |
| 971 | ) |
| 972 | |
| 973 | [1] => Array |
| 974 | ( |
| 975 | [MovieName] => The Matrix Reloaded |
| 976 | [MovieYear] => 2003 |
| 977 | [MovieKind] => movie |
| 978 | [IDMovieIMDB] => 0234215 |
| 979 | ) |
| 980 | |
| 981 | [2] => Array |
| 982 | ( |
| 983 | [MovieName] => The Matrix Revolutions |
| 984 | [MovieYear] => 2003 |
| 985 | [MovieKind] => movie |
| 986 | [IDMovieIMDB] => 0242653 |
| 987 | ) |
| 988 | |
| 989 | [3] => Array |
| 990 | ( |
| 991 | [MovieName] => CR: Enter the Matrix |
| 992 | [MovieYear] => 2009 |
| 993 | [MovieKind] => movie |
| 994 | [IDMovieIMDB] => 1675286 |
| 995 | ) |
| 996 | |
| 997 | ) |
| 998 | |
| 999 | ) |
| 1000 | |
| 1001 | [seconds] => 0.004 |
| 1002 | ) |
| 1003 | }}} |
| 1004 | |
| 1005 | '''Fields explanation:''' |
| 1006 | All field are self-explained. |
| 1007 | |