如何创建api并使用创建Web API,如Twitter API或Facebook API? [英] how to create api and use creating Web API like Twitter API or Facebook API?

查看:53
本文介绍了如何创建api并使用创建Web API,如Twitter API或Facebook API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我已经开发了一个像example.com这样的网站,许多公司的所有员工都会来到他们的雇主那里写下他们的意见和评论,分数包括好,坏,优秀等等,这些数据需要在example.com和所有客户网站上显示,并带有分数的实际数据,例如好的,坏的,优秀的等等,例如我在数据库中有100个雇主,这100家公司的所有员工都会来到一个网站(example.com)上写他们的分数,然后我的角色是展示真实的与该特定公司相关的数据到他们的网站。我不允许在y公司的网站上显示x公司的数据。因此,XYZ雇主应该获得与XYZ雇主而非ABC雇主相关的真实数据,ABC雇主应该只获得ABC相关数据。然后雇主需要在各自的网站上提供他们的数据。



所以在这里我将不得不为他们管理数据,作为example.com客户的雇主应该得到用于与各自网站集成的api代码。所以我需要开发这样的功能,员工可以在example.com或雇主的网站上写下他们的分数,但是分数应该同时在example.com和雇主的网站(客户)上更新。该应用程序假设很快就能获得秤。这就是为什么,我想比较考虑example.com的庞大而庞大的数据库的所有可能性,因为很快就会有更多的功能。所以我不确定如何继续,所以告诉我你是否可以选择这样做的替代方案。请尽快推荐我。

是否像创建Twitter API或Facebook API这样的Web API?它显示了与网站上的帐户登录相关的实际喜欢或推文以及facebook和twitter的客户端页面。

请解释一下。这非常非常紧急。

解决方案

如何同时更新两个独立数据库上的数据。 [ ^ ]

Hi,
I have developed a website as example.com where all the employees of many companies will come and write their opinions and comments on their employers with their scores such as good, bad, excellent, etc. and this data needs to be shown on example.com and on all the clients websites with those actual data with the scores e.g. good, bad, excellent, etc. for example I have got 100 employers in the database and all the employees of those 100 companies will come and write their scores on a single website (example.com) and then my role is to show the real data related to that particular company to their website. And I am not allowed to show the x company’s data on y company''s website. Meaning thereby, XYZ-employer should get the real data related to XYZ employer and not of the ABC employer and ABC employer should get only ABC related data. And then employers need their data on their respective websites.

So here I will have to manage the data for them and the employer being the client of example.com should get the api code for integration with their respective websites. So I need to develop such functionality where the employee can write their score either on example.com or on the employer’s website but then the scores should be updated on example.com and the employer’s website (clients) simultaneously. This application is supposing to get the scales very soon. That is why, I want to compare all the possibilities considering the heavy and bulky database of example.com because very soon there will some more functionalities. So I am not sure how to go ahead, so tell me if you can what are the possible alternatives for doing so. Please suggest me ASAP.
Will it be like creating Web API like Twitter API or Facebook API? which shows the actual likes or tweets related to that log in account on website as well as on client page of facebook and twitter.
Please explain. IT''s VERY VERY URGENT.

解决方案

How to update the data on two isolated databases simultaneously.[^]


这篇关于如何创建api并使用创建Web API,如Twitter API或Facebook API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆