Browse By Tags

  • 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: 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: CS 2008 RC1 - REST API Connection Problems

    Support - I have been having difficulties using the CS 2008 RC1 REST API. One of the main issues in our project is to synchronize user accounts with Community Server. We need this urgently. Please see this post for more details: http://communityserver.org/forums/t/498349.aspx
  • 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: Re: Batch Insert/Disable Users (Users Synchronization)

    I got it to work with the 2008 api. The code below might help in the period before the documentation is released. (there might be some syntax issues since I removed some lines for obvious reasons). Take care! private static void SyncUsersWithCS() { int updatedUserCount = 0, deletedUserCount...
  • 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: Setting Password on New User (REST API)

    I'm using the REST API to set the password on a new user to an internal, 5 digit code (ie: 12345 or 02142). I have my Pasword Regular Expression Pattern set to the default ^.*$ which allows for a 5 digit password. When I set the password on a NEW user I keep getting this error: System.Net.WebException...
  • Forum Post: REST API + Media Gallery Posts

    Right, couldn't work out how to do this via the REST API so I made a web service to upload a temporary file to: [WebMethod(Description="Uploads a Temporary File Attachment")] public Guid UploadTempFile(byte[] file, string filename, string contenttype, int sectionid, string username...
  • 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: REST API performance issues

    I have written a tool that can migrate users and posts from my previous forums application. When testing on my own dev machine (to http://localhost/cs , the performance was quite slow. I could post about one message every 4 seconds. The CPU was just idling. While testing this, I noticed that when...