For Foursquare users that manage venues is there an expected user type that will be returned from the user details call? Is there a restriction to which types of users can manage venues?
Users of type "chain" obviously manage a bunch of venues but can a "page", "venuePage" or general user also do this?
Users who can manage venues do not have a specific type, and all users who are not "venuePages" can manage venues.
Related
I want to implement Social login in my Django project. When I searched about it, I found social login for only one user. But I want to implement it for different type of users as I mentioned in the title. Can anyone suggest a solution to implement this in my project.
You can allow auto-registration to everybody. But, to be registered on your app doesn't mean user can do anything in app. Only users on group candidate , employer or customer are allowed to see data or perform operations in app.
Then, you can create views on your app to put users on group. For example, a user of the grup employer can assign users to group customer.
I am designing a REST API in which there are several user types:
disabled user
standard user
support user
admin
root
for each user, there are certain properties assigned to them in a relational database.
For example files, messages, payments, ...
Let's say I want users with higher ranks to be able to handle data related to lower ranks (e.g. an admin can modify a standard user's properties)
How can I implement it in a way that I make sure the authorization functionality is separated from the process (CRUD process).
I want something like this:
api.Get("/users/:id", authorization, processHandler)
I am using the echo framework and Golang, but I don't think that really matters. I am looking for a general solution independent of language.
Maybe you have Roles and Permissions problems, that problem has a solution when you control the access level by JWT token (for example).
You have a table with enabled system permissions and your users have associated or assigned permissions, this "association" can be managed through the Roles and Permissions manager (CRUD). So when you need to associate permissions to a user, you have to create a relationship between the permissions and the user. Then, send the new "state" in the token (JWT).
So finally you have a "middleware" on your routes like this
api.Get ("/ users /: id", authorization, processHandler)
And your authorization role has the responsibility to check if your user has the permissions to use the endpoint.
We have an issue with retrieval of managed venues via Foursquare API.
I can't see that my home location in my managed locations list.
We use this api call :
"https://api.foursquare.com/v2/venues/managed?oauth_token=' + token",
but it always returns an empty list.
Could a home location be retrieved using this api call, or there is a special api method?
Thank you!
Your home venue is not a managed venue. Managed venues refer specifically to businesses that have been claimed by their owners, and the venues/managed endpoint returns venues that have been claimed in such a fashion. It is not possible to use the API to determine a user's home.
I want to add venues to foursquare from my app but I don't want to make the users sign in into foursquare. I created one fake user that my server uses for all the real users of my application, but I'm afraid foursquare will block this fake user becauase it's going to add many venues, and from different places at the same time.
What's the best solution?
thanks.
Your set up is definitely not recommended, but as a way to mitigate your risks, limit the number of venues a user can create via your app (like 1 per day). Otherwise one abusive user can cause your entire user account to be suspended.
I plan to use Foursquare Venues to help users fill up a form about the location of the event that they would be creating on our website.
However, sometimes the event location is not present or unaccurate in the foursquare's database. In this scenario we are planning to ask user to manually enter the event location information which would we would save in our own database.
Next time a user enters a location, we would give them suggestions by combining the results from our database and Foursquares.
The question I have is: is this allowed and accepted by the Foursquare api usage policy? Thanks.
--
a demo of how I am using Foursquare Venues currently: http://karanverma.info/Ingressos/venues.html
Yes, it is allowed. See foursquare Policies page for more information.
They do not allow merging of data from their database and google, but they allow you to extend with data of your own.
That link contains all the different usage policies information, not just for the venues database, but generally if you have a more specific question you should just ask them directly (link for their support page)