Tagged Content List
  • Forum Post: Re: Permissions

    Jose, That does make sense. Where I have struggled in the past is enrolling tons of new customers in my database. Is sounds like the REST API may help me here. Is there any documentation so I can do some testing of a bulk import with the rest API, or perhaps pass variables in an encrypted string to...
  • Forum Post: REST web service API

    Am I missing something or is there any documentation on how to utilize this? I want to automate a conversion of users from a legacy system, but have seen that the recommended way is to use the REST API, but cannot find any documentation anywhere for that.
  • Forum Post: Re: REST web service API

    Will it be possible to create new users via the REST Web Services API?
  • Forum Post: Re: REST web service API

    I keep getting There was an error: System.Net.WebException: Invalid Credentials at CommunityServer.WebServices.Common.BaseService.GetResponse(String url) at CommunityServer.WebServices.Common.BaseService.ValidateUserApiKey(String username, String apiKey) at CommunityServer.WebServices.Common.BaseService...
  • Forum Post: Rest API - Invalid Credentials

    I keep getting an Invalid Credential error when I try to connect to the REST API of my local site. System.Net.WebException: Invalid Credentials at CommunityServer.WebServices.Common.BaseService.GetResponse(String url) at CommunityServer.WebServices.Common.BaseService.ValidateUserApiKey(String username...
  • Forum Post: Re: Rest API - Invalid Credentials

    I can view the XML generated by browsing the the various URLs of the web service but I still can't get the API to work. I just wrote a simple console application with one method but it always fails with the error above. using CommunityServer.WebServices.Membership; using CommunityServer.WebServices;...
  • Forum Post: Re: Rest API - Invalid Credentials

    Could this be a licensing thing? Our license says that it's "currently inactive" because we have a license from 2007.1 installed. We have the ability to upgrade and I'm just waiting on Telligent to get back to me with the new key.
  • Forum Post: Re: Rest API - Invalid Credentials

    I tried to use the example in the API documentation but that didn't work either: BlogsService service = new BlogsService("http://localhost/cs/", "admin", "l7stbpjd"); Blog blog = service.GetBlog("sample_weblog"); List<BlogPost> posts = service.GetBlogPosts...
  • Forum Post: Re: REST web service API

    Martin Button I'm using the web services with an API key generated for admin. The name I believe is just for reference, you use the username in the credentials. I'm using the same code as you to instantiate the web service and it's working so I'm not sure what your doing differently...
  • Forum Post: Re: Rest API - Invalid Credentials

    afscrome confirm that you have a user with the username admin Yes, I have that and he's in the system administrator role which is set to be able to use the REST API afscrome try creating another user and seeing if you can access him via REST I tried creating a new user too and that gave...
  • Forum Post: Re: Rest API - Invalid Credentials

    Interesting note: I tried to connect to http://communityserver.org with my profile's API key and it gave me a different error: You are not authorized to use the service So, at least the connection code should be working - it's just that my install of CS 2008 RC1 is not validating it's...
  • Forum Post: Re: Rest API - Invalid Credentials

    Yes, the API has been enabled and "SystemAdministrator" has access and my admin account exists and is in the "SystemAdministrator" role. I tried it with granting access to just "SystemAdministrator" and then I tried by granting access to every single role. Neither worked...
  • Forum Post: Re: Rest API - Invalid Credentials

    I finally got it to connect using the alias for local host: 127.0.0.1 service = new MembershipService ( "http://127.0.0.1/cs/" , "admin" , "l7stbpjd" ); Now, why wouldn't localhost work?
  • Forum Post: REST API - working with extended attributes

    How does one get or set extended attributes on users, forum posts, etc.? Thanks, Troy
  • Forum Post: REST API: Issue with getting Group blog posts

    This works, but only returns the first 20 posts: GroupsService.GetGroupBlogPosts(MyGroup.Id); This does not work : GroupsService.GetGroupBlogPosts(MyGroup.Id, 0, 9999); It returns this error message: The requested object was could not be found at this location, invalid Uri. --Troy
  • Forum Post: REST API: issue with posting to a group's blog

    When I run this code, the blog doesn't appear in the group's blog: Post := GroupBlogPost.Create; Post.Title := 'test'; Post.Body := 'blah blah blah'; Post.Date := Nullable<System.DateTime>.Create(MsgViewPostDate.AsDateTime); Post.GroupBlogEnabled := True; Post := GS.AddGroupBlogPost...
  • Forum Post: REST-API 403 when connecting via webclient

    Hi, I'm trying to connect to the API via the webclient class because I need the ratings functions, but they're not in the proxy as of the RC. The proxy works, but when I connect using the same information via web client I have the 403 response. I'm trying to handle ratings for blog posts...
  • Forum Post: REST-API Updating a post rating returns HTTP 403

    Hi, I'm having trouble updating a rating for a post using the REST-API. Create worked fine, so I'm a bit confused at this point. Here's my code to do the create and update: double ? oldRating = GetUserRating(postID, userID); System.Net. WebClient client = SetupClient(username); string...
  • Forum Post: REST API: Updating User's Password Not Working

    I'm trying to update an existing users password using the REST API but it doesn't seem to take. Any ideas? try { MembershipService service = new MembershipService(csUrl, csUsername, csApiKey); User existingUser = service.GetUser(email); existingUser.Password = "reallycoolpassword";...
  • Forum Post: Re: REST API: Updating User's Password Not Working

    Shoot. That makes sense. Any word on when the API documentation will be updated? This would be a good addition. I need to do a migration and will then need to remove all users and re-add them. I have been having issues with the code below. It seems that when I delete a user, and then try to create...
  • Forum Post: REST API Wrapper PostName Question

    Correct me if I am wrong but the PostName field in the csPosts table is used for SEO in blog posts. In CS 2007, we had began making a customization which utilized it for SEO in forum posts as well. My issue is that I noticed that in the Forums.ForumPost class of the REST API Wrapper there is no Property...
  • Forum Post: ERROR Using REST API to Create a new Group

    I am using the REST API to create a new group. Below is the code. The code always fails when I call webservice.AddGroup(group) with the following error "Object reference not set to an instance of an object." The Group is created and I can access it using the CS front end but why the error...
  • Forum Post: Catching REST API Exceptions and recording to CS?

    Anyway to record exceptions from REST API calls to the Exceptions Report?
  • Forum Post: Batch / Mass insert of new users using REST API

    I would like to know how to mass import users (and hopefully user types) by using the API and either a TXT file or XML. Any ideas? We would like to be able to mass import users from a CSV, TXT, or XML file and thought the API would allow for this, but documentation is scarece. Any help, pointers, ideas...
  • Forum Post: REST API - BlogPostType

    Why is the BlogPostType enum different than the one on the main API library? Isn't this supposed to be consistent? The one on the REST API has values like Category, Day Month... no Article, Comment, Post Also, it is not possible to create a BlogPost as an Article from the REST API...