The Movie Database 支持

Hi, I was wondering if the following is possible:

  • enable users of my application to create a new account
  • enable users to login
  • add movies as favorite s

So far I only found I am able to create an session using my api key. But for as far as I know the api key is linked to my account and thus would allow the users to edit my account. so how would I be able to provide this for my users?

Thanks in advance

8 回复(第 1 页,共 1 页)

Jump to last post

Hi dictator,

While your API key is indeed bound to your account, sessions are attached to both your account (s the application) and individual user accounts. Step #2 when creating a new session is what attaches an end users account to your application. This lets an individual user rate movies and mark them as a favourite for example.

So, to answer your questions…

enable users of my application to create a new account

Anyone can sign up for an account, just direct them to the register page.

enable users to login

Follow steps 1-3 and you are allowing them to "login" within your application and execute some user only functions.

add movies as favourites

Already outlined above.

Cheers.

Great i think i am able to achieve what i want now, thanks

What key should i store to save the user that logged, the requestkey or the sessionkey?

The session key is what you will use in combination with an API key to execute user actions. You should store the session key.

The sessionkey will not invalidate?

No. The only way it can be revoked is by the user in their account area.

Great i am going to try this tomorrow, thanks for your quick replies

Wanted to let you know i got it working ;) thanks for your help

找不到电影或节目?登录并创建它吧。

全站通用

s 聚焦到搜索栏
p 打开个人资料菜单
esc 关闭打开的窗口
? 打开键盘快捷键窗口

在媒体页面

b 返回(或返回上级)
e 进入编辑页面

在电视季页面

(右箭头)下一季
(左箭头)前一季

在电视集页面

(右箭头)下一集
(左箭头)上一集

在所有图像页面

a 打开添加图片窗口

在所有编辑页面

t 打开翻译选择器
ctrl+ s 提交

在讨论页面

n 创建新讨论
w 切换关注状态
p 设为公开 / 私密讨论
c 关闭 / 开放讨论
a 打开活动页
r 回复讨论
l 跳转至最新回复
ctrl+ enter 发送信息
(右箭头)下一页
(左箭头)前一页

设置

想给这个条目评分或将其添加到片单中?

登录

还不是会员?

注册加入社区