How do I get the Podio app_id by app name? - podio

I have the app name and I need to get the app_id for that app. Is there a function in podio that returns the app_id if I provide the app name?

You can use Podio Search in space v2 API call to get the app details using the app name.
You can also use Search in organization v2 API call to fetch the details.
If you do not know both the space_id and the organisation_id, then you may use the Podio Search globally v2 API call in order to get the details of the app.
You may need to pass the app name in the query parameter and ref_type => app.
Try the sandbox in the mentioned links to know more about the response from the search.

Related

Get option values from category field in podio Java API

I have a Podio app with category field and some option values in it. I want to get all the category option values from Podio using Java API.
Is there any way to get it ?
My podio app
You will get the Podio app config by calling a GET request to /app/{app_id} endpoint.
Refer Podio API Doc here
You can also try this operation in the sandbox on that doc page.

Podio Contact API Untegration

I am trying to integrate Contacts API with one of our application. One of my client has created API ID and APP token key. I am using NuGet Package of Podio.
I am trying to use GetContactTotals. But I am not able to fetch no. of records. It is throwing an error. I have used AuthenticateWithApp method. Actually our goal is we have to fetch the contacts and sync with our application. When I use AuthenticateWithPassword method it fetches Contacts, which is more than in that particular app.
Could you please help with any example with which I can achieve this?
GetContactTotal method requires user authentication. Apps don't have access to user's contacts.
Also, some of contacts methods are deprecated (e.g.: https://developers.podio.com/doc/contacts/get-space-contact-totals-67508), so you might want to redesign how to store all contact information and use apps and particularly "Contacts App".
More details on how to organize contacts are here: https://help.podio.com/hc/en-us/articles/201019938-Using-a-Contacts-app-Importing-Contacts

Bigcommerce API where to fine client ID

I have a store on bigcommerce and i need to access the customers registered on our store using there api.
I havent created any app over there. I need to access the customers registering on our store.
According to api i need to use client id which we get by creating an app.
https://developer.bigcommerce.com/api/#request-headers
But actually i dont need to create a app i just want to use the store and fetch the customer details using the api into another application, can anyone please tell me how to get client id from the dashboard login.
You can use the legacy API (non-oAuth) credentials instead.
Guide: https://support.bigcommerce.com/articles/Public/Legacy-API-Accounts

Get historical data using Instagram API endpoints.

I am trying to fetch data using the Instagram API endpoints. Steps that I have followed
1. Register the client app.
2. Got the access token.
3. I am using this access token through out the url endpoints.
Ex. to get the data for recent media I am using this url endpoint: https://api.instagram.com/v1/users/self/media/recent/?access_token=ACCESS-TOKEN
However as I am in Sandbox mode, as per the documentation I get only the recent 20 media. Whereas my account contains in total 291 media.
Problems that I am facing:
Not able to get next_url in the paginationpart.
Usage of min_id and max_id in the url does not respond to any changes in the output or the data i.e fetched (Still get only 20 records/media)
Ex: https://api.instagram.com/v1/users/self/media/recent?access_token=XXXXXX&min_id=xxxxxx_xxxxx&max_id=xxxxxxx_xxxxxxx
Can anybody provide a solution as to how exactly I should get all of my historical data ?
You're in the sandbox mode so there's no way to achieve what you're trying to do before your app has been reviewed and approved (and gone live). From Instagram API documentation:
After your app has been reviewed and approved, you are ready to make it available to the general public. To switch your client from sandbox to live mode, you can use the button on the top section of the configuration screen for your app. When you are live, any Instagram user will be able to authorize your app, but you will have access only to the permissions that you were granted during the review.
Well, maybe you should try this library that allows you to scrape public info withou auth (client_id or access_token): https://github.com/raiym/instagram-php-scraper
$medias = Instagram::getMedias('kevin', 150);

how to know the details of app when a new app is created in podio?

I am calling a route on my server when a new app is create via webhooks. How to get the newly created app item details?
I am running apps integration server to get the details, calling a route on this server, is there any easy of getting newly created app item details?
Or is there any way like this
How do I get created item details in the webhook URL of Podio?
like in webhook https://api.domain.com/v1/message?appname={{app_name}}&itemname={{item_name}}&itemassignedto=
{{item_assigned_to}}
The documentation is at: https://developers.podio.com/doc/hooks
When the webhook is invoked you receive the parameter app_id in the POST request. That holds the app_id of the app that was created. USe that to get the full app using: https://developers.podio.com/doc/applications/get-app-22349
After you have saved the item with
$item->save();
simply add this to your API call and proceed as usual.
PodioItem:get($item->item_id);