# How to integrate with codeigniter framework (PHP framework)

**URL:** <https://forums.knack.com/t/how-to-integrate-with-codeigniter-framework-php-framework/10014>\
**Category:** API & Custom Code\
**Created:** [January 3, 2018, 12:19pm UTC](https://forums.knack.com/t/how-to-integrate-with-codeigniter-framework-php-framework/10014 "2018-01-03T12:19:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mukeshjain14969](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@Mukeshjain14969](https://forums.knack.com/u/Mukeshjain14969)\
**Post date:** [January 3, 2018, 12:19pm UTC](https://forums.knack.com/t/how-to-integrate-with-codeigniter-framework-php-framework/10014/1 "2018-01-03T12:19:05Z")

</div>

Is there any api&nbsp;to get data from knack and upload data into knack

---

<div class="post-metadata">

**Author:** ![Mukeshjain11894](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@Mukeshjain11894](https://forums.knack.com/u/Mukeshjain11894)\
**Post date:** [January 4, 2018, 12:14pm UTC](https://forums.knack.com/t/how-to-integrate-with-codeigniter-framework-php-framework/10014/2 "2018-01-04T12:14:18Z")

</div>

I saw api documentation but doubt not cleared&nbsp;

&nbsp;

i&nbsp;am not able to understand&nbsp;

&nbsp;

My task is insert&nbsp;into knack from my local database and retrive&nbsp;value from knack

&nbsp;

can you explain&nbsp;

---

<div class="post-metadata">

**Author:** ![Sunny\_Singla](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/sunny_singla/32/1007_2.png) [@Sunny\_Singla](https://forums.knack.com/u/Sunny_Singla)\
**Post date:** [January 4, 2018, 7:16am UTC](https://forums.knack.com/t/how-to-integrate-with-codeigniter-framework-php-framework/10014/3 "2018-01-04T07:16:13Z")

</div>

Mukesh- check knack API documentation you can find that .

&nbsp;[https://www.knack.com/developer-documentation/#working-with-fields](https://www.knack.com/developer-documentation/#working-with-fields)

Thanks&nbsp;

---

<div class="post-metadata">

**Author:** ![Mukeshjain11894](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@Mukeshjain11894](https://forums.knack.com/u/Mukeshjain11894)\
**Post date:** [January 4, 2018, 5:03am UTC](https://forums.knack.com/t/how-to-integrate-with-codeigniter-framework-php-framework/10014/4 "2018-01-04T05:03:44Z")

</div>

Thank You for this ..

I have some doubt ..

&nbsp;

from where i get url

---

<div class="post-metadata">

**Author:** ![Sunny\_Singla](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/sunny_singla/32/1007_2.png) [@Sunny\_Singla](https://forums.knack.com/u/Sunny_Singla)\
**Post date:** [January 3, 2018, 2:29pm UTC](https://forums.knack.com/t/how-to-integrate-with-codeigniter-framework-php-framework/10014/5 "2018-01-03T14:29:43Z")

</div>

Hi Mukesh,

&nbsp;

Please check&nbsp;

&nbsp;If there is no security issue to explore API key you can use below code. Otherwise need to use knack forms .&nbsp;

Get data from knack   
$.ajax({  
 url: ObjectURL,  
 type: "GET",  
 headers: { 'X-Knack-Application-Id': API\_ID, 'X-Knack-REST-API-Key': API\_Key },  
 success: function (response) {  
}  
});

&nbsp;

Post data into knack

$.ajax({  
 url: url, // + record.id,  
 type: "POST",  
 headers: {  
 'X-Knack-Application-Id': API\_ID, // change to your app's API info  
 'X-Knack-REST-API-Key': API\_Key  
 },  
 data: data,  
 success: function (response) {

}  
 });

Thanks,

Sunny Singla

[ssingla1985@gmail.com](mailto:ssingla1985@gmail.com)

+919855089359
