Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Adobe APi with python

Avatar

Avatar
Validate 1
Level 1
vincei52755720
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
vincei52755720
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
vincei52755720
Level 1

01-11-2017

Hi,

I am running the following python code to get a list of Evars using the Adobe API but i receive an error:

{"error":"Bad Request","error_description":"No report suites defined.","error_uri":null}

payload={"X-WSSE: UsernameToken Username":"myusername", "PasswordDigest":"UhMNI+kV2N1llpgm7xPmtvMtu90", "Nonce":"a8c1005f41f646d196a6a8785061729b", "Created":"2017-11-01T09:39:30.071848Z"}


data= { "rsid_list":[

        "myreportsuiteid"

         ]}
r = requests.post('https://api.omniture.com/admin/1.4/rest/?method=ReportSuite.GetEvars',headers=payload, data=data)

status= r.status_code

print(r.text)

How do you pass the rsid to the post request?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Ignite 1
Employee
jacobh35707634
Employee

Likes

28 likes

Total Posts

41 posts

Correct Reply

31 solutions
Top badges earned
Ignite 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Ignite 1
Employee
jacobh35707634
Employee

Likes

28 likes

Total Posts

41 posts

Correct Reply

31 solutions
Top badges earned
Ignite 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
jacobh35707634
Employee

07-11-2017

Make sure you are escaping your data variable correctly:

data = """{ \"rsid_list\":[

        \"myreportsuiteid\"

         ]}"""

Also, you should take a look at this wrapper library: GitHub - dancingcactus/python-omniture: A high-level Python wrapper for the Adobe Omniture API.

This library should save you some effort, there are several good examples in that repo.

cathyw49544988,

The Analytics REST API reference is available at Developer Connection | Adobe Developer Connection

Answers (3)

Answers (3)

Avatar

Avatar
Validate 25
Level 4
cathyw49544988
Level 4

Likes

36 likes

Total Posts

155 posts

Correct Reply

2 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile

Avatar
Validate 25
Level 4
cathyw49544988
Level 4

Likes

36 likes

Total Posts

155 posts

Correct Reply

2 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile
cathyw49544988
Level 4

02-11-2017

I know in general how to use API with python, I am wondering do you know any document for Adobe API?

Thanks

Avatar

Avatar
Validate 1
Level 1
vincei52755720
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
vincei52755720
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
vincei52755720
Level 1

02-11-2017

not really but the requests library can get you started. Using the Requests Library in Python

Hope that helps

Avatar

Avatar
Validate 25
Level 4
cathyw49544988
Level 4

Likes

36 likes

Total Posts

155 posts

Correct Reply

2 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile

Avatar
Validate 25
Level 4
cathyw49544988
Level 4

Likes

36 likes

Total Posts

155 posts

Correct Reply

2 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile
cathyw49544988
Level 4

02-11-2017

I have interest in using API with python. Do you know any good training video or document can jumpstart me?

Thanks