Is there any slack API to update profile information? - slack-api

Hi I would like to update profile information of my slack account using API.
I don't find any API on their documentation. Do they have any API to update profile information?
See the screenshot http://screencast.com/t/f7eoAKT0Yy

Yes, they do.
But it's an undocumented API method. It's called users.profile.set. So far I used it to change first- and last name, but other attributes should work too.
The basic syntax is:
users.profile.set?token=XXX&user=U12345678&profile=NEWPROFILE
NEWPROFILE is a placeholder for the new profile for the user in JSON format, but you only need to specify the attributes you want to change, e.g. profile={"first_name":"John"} will change the first name to John.
Check out my documentation on github for details and other undocumented methods in the Slack API.
Update November 2018
user.profile.set is now an official API method. However, you
need to be on a paid team to use it for other users (not yourself).
Although you can check this answer for a workaround.
users.setPhoto will allow you to change the profile picture. but
only for your own user / token.

No, they don't have any API for this.http://screencast.com/t/dmBImpJfkXu

Related

Is it possible to query or modify project membership/guests with the Asana API?

I'd like to be able to add a user as a guest to a project specific to that individual, but it looks like I cannot do this programmatically and must instead resort to manually adding them as a guest. Is there anything I'm missing in the API documentation? Is there an undocumented feature that would let me do so? Or am I just out of luck?
It is currently not possible to manage users of an organization via the API.
This is on our API roadmap, which I hope to publish a public version of soon.
You can subscribe to incremental changes of our API and it's documentation on API changelog https://www.apichangelog.com/api/asana

Using the ProfileAdminService to Follow a user

I'm trying to figure out if there's a way to use the ProfileAdminService (com.ibm.sbt.services.client.connections.profiles.ProfileAdminService) to get one user to follow another user.
I can see that you can do it via a put to /profiles/admin/atom/following.do but I was hoping to just use service.
I've investigated the FollowService but this only (at least that i can see) allows the current authenticated user to follow someone, but I want to be able to get any user to follow someone.
Thanks
The feature was not implemented in the IBM Social Business Toolkit SDK
you can look at the Code for ProfileAdminService and you'll see the methods do not include establishing a following relationship.
You need to use the REST API - http://www-10.lotus.com/ldd/lcwiki.nsf/xpAPIViewer.xsp?lookupName=IBM+Connections+5.0+API+Documentation#action=openDocument&res_title=Following_a_person_using_the_Administration_API_ic50&content=apicontent
with the specified body. You need to craft the URL properly in order to get the feature to work via the REST API

How to get JIRA issues assigned to the current user using the JIRA REST API?

I'm trying to get a list of issues assigned to the current logged in user using the JIRA REST API, but I can't find any documentation on how to do that.
What do I need to do in order to get the issues assigned to the current user?
You can specify the issues you want to receive by using jql.
In your case rest/api/2/search?jql=assignee=currentuser() should do the trick.
Here is the relevant part of the documentation of the REST api and here is the description of the used jql-function.

Using IP.Board XML-RPC API

I write the application on Node.js and I need to get information from the forum, which works on the engine IP.Board. I decided to use XML-RPC API. On this issue there is an article In the administrative tools set support for XML-RPC API on the website of the IPB. I managed to get some information through the API, but I don't know how to authenticate a user.
My actions:
In the administrative tools set support for XML-RPC API
Add user and allow to perform all methods
Copy the key and use in my application
But when it comes to posting on the forum from outside I have trouble . Read the article linked above:
method postTopic
member_field: This should be the field to look up the 'member_key' in
(for instance, 'member_id', 'email', 'members_display_name', etc.)
member_key: The value to search in 'member_field' with in order to find the poster. You may pass member_field as ID and member_key as
1, for instance, to post a topic as member ID 1.
forum_id: The ID of the forum to post the topic in
topic_title: The topic title
post_content: The contents of the first post
Now I need to know the ID of the user on whose behalf to publish a post. How to know this?
I had a similar problem and simple solution is not found. You can write your extension for IPB and implement the necessary APIs themselves. Using IPB XML-RPC API (at the time of publication of the question), you can only yourself to find out the ID of a user and on his behalf to make the publication, publish answers or use other available options. For example, automatically check the availability of offensive language in the message and answer any warning.

Possible to add attendee via api?

Prior to making an elance job ad, I'm hoping to confirm it's possible to add an attendee to an event via the eventbrite api. As a non-programmer it's not at all clear in reading the dev eventbrite site that this is in fact possible. Here is what I want to do:
Create an event in Eventbrite
(and get the event id or whatever is needed)
Create a product in Infusionsoft
(using event id from eventbrite)
Upon product sale in Infusionsoft, make an http post with information similar to:
http://eventbrite-api-sample.com/ (add attendee command)?(event id command)?(customer name, email, etc)
Happily let eventbrite do it's thing in regards to reminders, checking, followup!
I apologize if my question is obvious! Thanks for any help! If this seems doable my hope is to make an elance job ad and provide the developer resource page for eventbrite!
Ryan
Based on my research and attempts to work with the API, it seems unlikely Eventbrite will ever open up that option. Importing attendees and using API to add attendees is crippled, likely so that no one uses their own site/payment processing to circumvent Eventbrite fees.
It looks like this is not possible to create a new attendee through the API. Their workflow page also suggests this:
http://developer.eventbrite.com/doc/workflows/#orders
This is not currently a feature available through the API, but there is an option to add attendees manually through the UI. Instructions are here: http://help.eventbrite.com/customer/en_us/portal/articles/428370-add-attendees-manually

Resources