CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Rest Interface 403 Errror
Pages: [1]

Author Topic: Rest Interface 403 Errror  (Read 535 times)

antland01

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.4.0
  • CMS version: Drupal
  • MySQL version: 5.5
  • PHP version: 5.0
Rest Interface 403 Errror
May 03, 2014, 03:34:19 pm
Hi,

When i try and use the rest interface to add a contact to my Civicrm install, I get a 403 access denied error with Code that returns that looks like the login page of my Civicrm install, I have tried switching the keys around.

This is the URL i use
www.myurl.com/civicrm/extern/rest.php?key=12345&api_key=6789&entity=contact&action=create&first_name=App&last_name=Test&email=apptest@example.org&contact_type=Individual

I couldn't find anything similar to this that has been posted before

Thank you in advance for any help feel free to ask for any extra details needed


xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Rest Interface 403 Errror
May 04, 2014, 01:45:10 am
Hey,

You probably don't have the right path to rest.php. Where did you install your civicrm modules? yoursite.com/sites/all/modules/civicrm/extern/rest.php ?
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

antland01

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.4.0
  • CMS version: Drupal
  • MySQL version: 5.5
  • PHP version: 5.0
Re: Rest Interface 403 Errror
May 04, 2014, 06:22:12 am
Yes that is where it is installed.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Rest Interface 403 Errror
May 04, 2014, 11:03:00 am
So try:

www.myurl.com/sites/all/modules/civicrm/extern/rest.php?key=12345&api_key=6789&entity=contact&action=create&first_name=App&last_name=Test&email=apptest@example.org&contact_type=Individual
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

antland01

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.4.0
  • CMS version: Drupal
  • MySQL version: 5.5
  • PHP version: 5.0
Re: Rest Interface 403 Errror
May 05, 2014, 12:43:25 am
Tried it, Works thank you!  ;D

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Rest Interface 403 Errror

This forum was archived on 2017-11-26.